Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/958758/?format=api
{ "id": 958758, "url": "http://patchwork.ozlabs.org/api/patches/958758/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20180817102645.3839621-5-arnd@arndb.de/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20180817102645.3839621-5-arnd@arndb.de>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20180817102645.3839621-5-arnd@arndb.de/", "date": "2018-08-17T10:26:34", "name": "[RFC,04/15] PCI: export pci_register_host_bridge", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": false, "hash": "c2ec169c5a66bb30e113b02ef279d8177cca793c", "submitter": { "id": 30, "url": "http://patchwork.ozlabs.org/api/people/30/?format=api", "name": "Arnd Bergmann", "email": "arnd@arndb.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20180817102645.3839621-5-arnd@arndb.de/mbox/", "series": [ { "id": 61229, "url": "http://patchwork.ozlabs.org/api/series/61229/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=61229", "date": "2018-08-17T10:26:32", "name": "PCI: turn some __weak functions into callbacks", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/61229/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/958758/comments/", "check": "warning", "checks": "http://patchwork.ozlabs.org/api/patches/958758/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": [ "patchwork-incoming@ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 41sKgT5pPkz9s3Z\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 17 Aug 2018 20:48:37 +1000 (AEST)", "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 41sKgT4VVhzDr5t\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 17 Aug 2018 20:48:37 +1000 (AEST)", "from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 41sKKS34kSzDrWY\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tFri, 17 Aug 2018 20:32:59 +1000 (AEST)", "from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de\n\t(mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id\n\t0MAdid-1fjhxn3cuR-00BsPO; Fri, 17 Aug 2018 12:27:16 +0200" ], "Authentication-Results": [ "ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=arndb.de", "lists.ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=arndb.de", "lists.ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=arndb.de\n\t(client-ip=212.227.17.13; helo=mout.kundenserver.de;\n\tenvelope-from=arnd@arndb.de; receiver=<UNKNOWN>)", "lists.ozlabs.org;\n\tdmarc=none (p=none dis=none) header.from=arndb.de" ], "From": "Arnd Bergmann <arnd@arndb.de>", "To": "linux-pci@vger.kernel.org,\n\tBjorn Helgaas <bhelgaas@google.com>", "Subject": "[RFC 04/15] PCI: export pci_register_host_bridge", "Date": "Fri, 17 Aug 2018 12:26:34 +0200", "Message-Id": "<20180817102645.3839621-5-arnd@arndb.de>", "X-Mailer": "git-send-email 2.18.0", "In-Reply-To": "<20180817102645.3839621-1-arnd@arndb.de>", "References": "<20180817102645.3839621-1-arnd@arndb.de>", "X-Provags-ID": "V03:K1:qV+QiFpoLBNDT+pnsfxk7Q12Wr+Zfztf79RikKLfT1kBpbTwKUM\n\tiZEEf/AFkASGLvQTzHO6lI+OsNf423ev36D4uMlANybis7iSjomPpFGobYlMVXCwQdTCqSd\n\tugZbMhW+33xetnzQSUdMeicQ786GrhuoT6iTK6eAwaMormNmf16uMK5AaJlveZ1uMEi0UOl\n\td7rj/WjNLBnDisKLuP0zg==", "X-UI-Out-Filterresults": "notjunk:1; V01:K0:mqjwwQrypPA=:CArrxfvE0eZuS2Tt7c+ARj\n\tPB1UM7pT4Qxw19VZKHb8nMpyI/uAcjOdGl34colob8MlcOZ1Z23JNuFcJSk2CzI4vCkC4cmgK\n\tdsQG4Ypj/8Lb29zrXwHeTlWSa9Bpr9/Q7BWS0apZ9d6NxClv2GezO+icIFTa2aYX7ZbwNkstN\n\tS+5ERKIYLetoH6vIc150sHb/yJFabyR018w7ymbajQtCjeDRb5+KXyLUIYmRxtgyB4yBegOmU\n\tVkwZ774duD+vcTFI1z4PHvynaII4pHEtUZc/+JQsthKuORJA1gCZeDISxYlevtzvSt4G1uGDD\n\tIJyVkxGukDGtllR4qU9ejNh7MZRassBp9Iaj433hp8VOUu0SGlX/OBlO9mzD29KBXGFX5gyaI\n\tpnP/0AhrwtxHaByaaz76/xDqi9AMAxLjZ1YvbuYscV6mZbSipvVGv77Il724iD4gHNifsd6wz\n\tBP74DYRS6UEV0SkhTNIGtI3jAhHHPKFwNJ9YMvxV3Ms5Q/eACiEYIM72R/q6HAh0aplklkMvH\n\tv1eVEe7v/KEMSMq5FJ2w9OoME/qOgVchx3kmRRQlo2DmPO6y2WYLTTyiv6o2HWQ+BJPedZQzz\n\trEL4UAP+St13A6SE6p4hxxmX/3KAcUxY6gWVZHNOmrLLmtkEhCDYdgV8vkTwXV52mVEi0j4wW\n\tRc4X7Qs9C/GTE8qhH3LEVMUTtvlB6Pj0ttYAxAaTZBKky2s4IhucciZzjdiDxc2KdVXQ=", "X-BeenThere": "linuxppc-dev@lists.ozlabs.org", "X-Mailman-Version": "2.1.27", "Precedence": "list", "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>", "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>", "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>", "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>", "Cc": "Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,\n\tArnd Bergmann <arnd@arndb.de>, linux-kernel@vger.kernel.org,\n\tChristoph Hellwig <hch@infradead.org>, linux-acpi@vger.kernel.org,\n\tlinuxppc-dev@lists.ozlabs.org", "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org", "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>" }, "content": "There are a couple of users of the old pci_create_root_bus() interface,\nwhich calls pci_register_host_bridge() without actually scanning the bus.\n\nIn order to get those callers a little closer to the current method\nof separating the allocation and probing of the host bridge, this\nexports the internal interface to modules. If all the callers can\nget moved over to pci_host_probe() or pci_scan_root_bus_bridge()\nlater, the export can be removed again.\n\nSigned-off-by: Arnd Bergmann <arnd@arndb.de>\n---\n drivers/pci/probe.c | 25 ++++++++++++++++++++++++-\n include/linux/pci.h | 1 +\n 2 files changed, 25 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c\nindex cf169742c03e..5ca7d5941ad0 100644\n--- a/drivers/pci/probe.c\n+++ b/drivers/pci/probe.c\n@@ -762,7 +762,29 @@ static void pci_set_bus_msi_domain(struct pci_bus *bus)\n \tdev_set_msi_domain(&bus->dev, d);\n }\n \n-static int pci_register_host_bridge(struct pci_host_bridge *bridge)\n+/*\n+ * pci_register_host_bridge() - Register a host bridge without scanning\n+ *\n+ * @bridge: a newly allocated host bridge structure\n+ *\n+ * This is the core part of bringing up a new PCI host bridge,\n+ * before we scan for attached devices and register them as\n+ * pci_dev.\n+ *\n+ * For the most part, this is an implementation detail of the\n+ * pci_host_probe() interface, which brings up the entire bus,\n+ * bus some older platforms still call it directly and manually\n+ * scan for devices.\n+ *\n+ * If your driver uses this, try to convert it to using\n+ * pci_host_probe() instead.\n+ *\n+ * Return: zero on suggess, or a negative error code.\n+ * Note: after pci_register_host_bridge() successfully returns,\n+ * the pci_host_bridge device is alive in driver core, and must\n+ * not be freed directly.\n+ */\n+int pci_register_host_bridge(struct pci_host_bridge *bridge)\n {\n \tstruct device *parent = bridge->dev.parent;\n \tstruct resource_entry *window, *n;\n@@ -877,6 +899,7 @@ static int pci_register_host_bridge(struct pci_host_bridge *bridge)\n \tkfree(bus);\n \treturn err;\n }\n+EXPORT_SYMBOL_GPL(pci_register_host_bridge);\n \n static bool pci_bridge_child_ext_cfg_accessible(struct pci_dev *bridge)\n {\ndiff --git a/include/linux/pci.h b/include/linux/pci.h\nindex d226e06fb5e5..e1337148cf9f 100644\n--- a/include/linux/pci.h\n+++ b/include/linux/pci.h\n@@ -909,6 +909,7 @@ struct pci_bus *pci_create_root_bus(struct device *parent, int bus,\n \t\t\t\t struct pci_ops *ops, void *sysdata,\n \t\t\t\t struct list_head *resources);\n int pci_host_probe(struct pci_host_bridge *bridge);\n+int pci_register_host_bridge(struct pci_host_bridge *);\n int pci_bus_insert_busn_res(struct pci_bus *b, int bus, int busmax);\n int pci_bus_update_busn_res_end(struct pci_bus *b, int busmax);\n void pci_bus_release_busn_res(struct pci_bus *b);\n", "prefixes": [ "RFC", "04/15" ] }