From patchwork Sun Sep 16 20:04:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10601881 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 A159915E8 for ; Sun, 16 Sep 2018 20:04:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 90AD929472 for ; Sun, 16 Sep 2018 20:04:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 847E529487; Sun, 16 Sep 2018 20:04:44 +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 707C329472 for ; Sun, 16 Sep 2018 20:04:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728501AbeIQB2r (ORCPT ); Sun, 16 Sep 2018 21:28:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:39480 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728498AbeIQB2q (ORCPT ); Sun, 16 Sep 2018 21:28:46 -0400 Received: from sinanubuntu1604.mkjiurmyylmellclgttazegk5f.bx.internal.cloudapp.net (unknown [40.117.86.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C99FA2087E; Sun, 16 Sep 2018 20:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537128282; bh=JN4clMn2y4jM8QOAvnGdm9RKuQeIlaeWs5iXi95n6U0=; h=From:To:Cc:Subject:Date:From; b=0gMSGoWb+UePGy1751n8xC09rnRYUtYOlrKVDYhHuPbhEGo4cvF09aEvLyleH9Ka8 zUdQXgYNzD/8PH+LeCj8uTSF2FGURO9ZxXbwfsdH7CHnjfLdsTYBENfljbbIYcr7vf TWWLf4ggNYxCcDQL7NHD4QVz6NlmZ+YgXgRxvaVw= From: Sinan Kaya To: linux-pci@vger.kernel.org Cc: alex.williamson@redhat.com, Sinan Kaya Subject: [PATCH v3 0/6] PCI: Add reset type parameter to PCI reset functions Date: Sun, 16 Sep 2018 20:04:33 +0000 Message-Id: <20180916200439.21960-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 v2: - collect acked by - restore slot based reset selection in VFIO driver 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 | 13 +- drivers/vfio/pci/vfio_pci_config.c | 4 +- drivers/xen/xen-pciback/pci_stub.c | 6 +- include/linux/pci.h | 21 ++- 13 files changed, 128 insertions(+), 66 deletions(-)