Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/971348/?format=api
{ "id": 971348, "url": "http://patchwork.ozlabs.org/api/patches/971348/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20180918235702.26573-2-keith.busch@intel.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api", "name": "Linux PCI development", "link_name": "linux-pci", "list_id": "linux-pci.vger.kernel.org", "list_email": "linux-pci@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20180918235702.26573-2-keith.busch@intel.com>", "list_archive_url": null, "date": "2018-09-18T23:56:53", "name": "[PATCHv3,01/10] PCI/portdrv: Use subsys_init for service drivers", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "4ed99b26f228b6b154a02cecc304cdedc1ba9230", "submitter": { "id": 19950, "url": "http://patchwork.ozlabs.org/api/people/19950/?format=api", "name": "Keith Busch", "email": "keith.busch@intel.com" }, "delegate": { "id": 6763, "url": "http://patchwork.ozlabs.org/api/users/6763/?format=api", "username": "bhelgaas", "first_name": "Bjorn", "last_name": "Helgaas", "email": "bhelgaas@google.com" }, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20180918235702.26573-2-keith.busch@intel.com/mbox/", "series": [ { "id": 66288, "url": "http://patchwork.ozlabs.org/api/series/66288/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=66288", "date": "2018-09-18T23:56:52", "name": "PCI error handling", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/66288/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/971348/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/971348/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-pci-owner@vger.kernel.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pci-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=intel.com" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 42FKch1s3Nz9sCS\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 19 Sep 2018 09:55:32 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1727818AbeISFaa (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tWed, 19 Sep 2018 01:30:30 -0400", "from mga02.intel.com ([134.134.136.20]:47633 \"EHLO mga02.intel.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1730633AbeISFaa (ORCPT <rfc822;linux-pci@vger.kernel.org>);\n\tWed, 19 Sep 2018 01:30:30 -0400", "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t18 Sep 2018 16:55:29 -0700", "from unknown (HELO localhost.lm.intel.com) ([10.232.112.44])\n\tby orsmga008.jf.intel.com with ESMTP; 18 Sep 2018 16:55:28 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.53,391,1531810800\"; d=\"scan'208\";a=\"74357509\"", "From": "Keith Busch <keith.busch@intel.com>", "To": "Linux PCI <linux-pci@vger.kernel.org>,\n\tBjorn Helgaas <bhelgaas@google.com>", "Cc": "Benjamin Herrenschmidt <benh@kernel.crashing.org>,\n\tSinan Kaya <okaya@kernel.org>,\n\tThomas Tai <thomas.tai@oracle.com>, poza@codeaurora.org,\n\tLukas Wunner <lukas@wunner.de>, Christoph Hellwig <hch@lst.de>,\n\tMika Westerberg <mika.westerberg@linux.intel.com>,\n\tKeith Busch <keith.busch@intel.com>", "Subject": "[PATCHv3 01/10] PCI/portdrv: Use subsys_init for service drivers", "Date": "Tue, 18 Sep 2018 17:56:53 -0600", "Message-Id": "<20180918235702.26573-2-keith.busch@intel.com>", "X-Mailer": "git-send-email 2.13.6", "In-Reply-To": "<20180918235702.26573-1-keith.busch@intel.com>", "References": "<20180918235702.26573-1-keith.busch@intel.com>", "Sender": "linux-pci-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-pci.vger.kernel.org>", "X-Mailing-List": "linux-pci@vger.kernel.org" }, "content": "The PCI port driver saves the PCI state after initializing all the\nservice devices. This was, however, before the service drivers were even\nregistered. The config space state that the service drivers were setting\nup were not being saved.\n\nThis patch fixes this by changing the service drivers use the\nsubsys_init, which gets the service drivers registered after the pci bus\nsystem is initialized, but before the pci devices are probed. This gets\nthe state saved as expected.\n\nNote, 70626d88385 (\"PCI: pciehp: Make explicitly non-modular\") already\nmentioned this exact change should be done, but declined to at the time\nuntil there was a real need for it.\n\nSigned-off-by: Keith Busch <keith.busch@intel.com>\n---\n drivers/pci/hotplug/pciehp_core.c | 2 +-\n drivers/pci/pcie/aer.c | 2 +-\n drivers/pci/pcie/dpc.c | 2 +-\n drivers/pci/pcie/pme.c | 2 +-\n 4 files changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c\nindex ccaf01e6eced..334044814dbe 100644\n--- a/drivers/pci/hotplug/pciehp_core.c\n+++ b/drivers/pci/hotplug/pciehp_core.c\n@@ -322,4 +322,4 @@ static int __init pcied_init(void)\n \n \treturn retval;\n }\n-device_initcall(pcied_init);\n+subsys_initcall(pcied_init);\ndiff --git a/drivers/pci/pcie/aer.c b/drivers/pci/pcie/aer.c\nindex 83180edd6ed4..1d2159409b01 100644\n--- a/drivers/pci/pcie/aer.c\n+++ b/drivers/pci/pcie/aer.c\n@@ -1575,4 +1575,4 @@ static int __init aer_service_init(void)\n \t\treturn -ENXIO;\n \treturn pcie_port_service_register(&aerdriver);\n }\n-device_initcall(aer_service_init);\n+subsys_initcall(aer_service_init);\ndiff --git a/drivers/pci/pcie/dpc.c b/drivers/pci/pcie/dpc.c\nindex f03279fc87cd..aacfb50eccfc 100644\n--- a/drivers/pci/pcie/dpc.c\n+++ b/drivers/pci/pcie/dpc.c\n@@ -286,4 +286,4 @@ static int __init dpc_service_init(void)\n {\n \treturn pcie_port_service_register(&dpcdriver);\n }\n-device_initcall(dpc_service_init);\n+subsys_initcall(dpc_service_init);\ndiff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c\nindex 3ed67676ea2a..cd8c1adb9b0a 100644\n--- a/drivers/pci/pcie/pme.c\n+++ b/drivers/pci/pcie/pme.c\n@@ -450,4 +450,4 @@ static int __init pcie_pme_service_init(void)\n {\n \treturn pcie_port_service_register(&pcie_pme_driver);\n }\n-device_initcall(pcie_pme_service_init);\n+subsys_initcall(pcie_pme_service_init);\n", "prefixes": [ "PATCHv3", "01/10" ] }