From patchwork Fri Sep 14 21:18:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10601227 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 367A714BD for ; Fri, 14 Sep 2018 21:18:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FAA62B969 for ; Fri, 14 Sep 2018 21:18:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 019DC2B980; Fri, 14 Sep 2018 21:18:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E94602B969 for ; Fri, 14 Sep 2018 21:18:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728118AbeIOCea (ORCPT ); Fri, 14 Sep 2018 22:34:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:37538 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727716AbeIOCea (ORCPT ); Fri, 14 Sep 2018 22:34:30 -0400 Received: from sinanubuntu1604.mkjiurmyylmellclgttazegk5f.bx.internal.cloudapp.net (unknown [40.76.90.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2632920881; Fri, 14 Sep 2018 21:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536959896; bh=Lczu1auuLh1K9Lpn/ouZAxG/TwPpA6NqeB7AWlyUq68=; h=From:To:Cc:Subject:Date:From; b=eSvr/uhMeW1TbR/x3N07BxK93gXJ0Apm1nCM7Q9GOKTaNx5MNUg9es1LYMgeQV1x6 IFoDYi4S88kdNVWNoF/ItDAb6yhn9p/1ZU3VV3zv0mRlQkZH1wp5q5UyHJ41SGWmCF P950rCW4U6aNlKEooa+dqB7X74kcqc4Ng3Xzltwc= From: Sinan Kaya To: linux-pci@vger.kernel.org Cc: alex.williamson@redhat.com, Sinan Kaya Subject: [PATCH v2 0/6] PCI: Add reset type parameter to PCI reset functions Date: Fri, 14 Sep 2018 21:18:02 +0000 Message-Id: <20180914211808.2564-1-okaya@kernel.org> X-Mailer: git-send-email 2.18.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We want more control over what kind of reset PCI core can apply. Have the application explicitly requested allowed reset types. differences from v1: Add reset type to pci_reset_bus() per feedbeck from Alex. Sinan Kaya (6): PCI: Expose reset_type to users of __pci_reset_function_locked() PCI: Expose reset_type to users of pci_reset_function() PCI: Expose reset_type to users of pci_reset_function_locked() PCI: Expose reset type to users of pci_try_reset_function() PCI: Expose reset type to users of pci_probe_reset_function() PCI: Expose reset type to users of pci_reset_bus() drivers/hid/intel-ish-hid/ipc/ipc.c | 2 +- drivers/misc/genwqe/card_base.c | 2 +- .../net/ethernet/cavium/liquidio/lio_main.c | 2 +- .../net/ethernet/qlogic/qlcnic/qlcnic_ctx.c | 2 +- drivers/net/ethernet/sfc/mcdi.c | 2 +- drivers/pci/pci-sysfs.c | 2 +- drivers/pci/pci.c | 134 ++++++++++++------ drivers/pci/pci.h | 2 +- drivers/pci/probe.c | 2 +- drivers/vfio/pci/vfio_pci.c | 11 +- drivers/vfio/pci/vfio_pci_config.c | 4 +- drivers/xen/xen-pciback/pci_stub.c | 6 +- include/linux/pci.h | 21 ++- 13 files changed, 126 insertions(+), 66 deletions(-)