get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2215979/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2215979,
    "url": "http://patchwork.ozlabs.org/api/patches/2215979/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260325143555.451852-13-herve.codina@bootlin.com/",
    "project": {
        "id": 42,
        "url": "http://patchwork.ozlabs.org/api/projects/42/?format=api",
        "name": "Linux GPIO development",
        "link_name": "linux-gpio",
        "list_id": "linux-gpio.vger.kernel.org",
        "list_email": "linux-gpio@vger.kernel.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260325143555.451852-13-herve.codina@bootlin.com>",
    "list_archive_url": null,
    "date": "2026-03-25T14:35:39",
    "name": "[v6,12/27] PCI: of: Set fwnode device of newly created PCI device nodes",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "541717b31e80c581deb6e12fc3d65ced2ff71d62",
    "submitter": {
        "id": 81983,
        "url": "http://patchwork.ozlabs.org/api/people/81983/?format=api",
        "name": "Herve Codina",
        "email": "herve.codina@bootlin.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260325143555.451852-13-herve.codina@bootlin.com/mbox/",
    "series": [
        {
            "id": 497454,
            "url": "http://patchwork.ozlabs.org/api/series/497454/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=497454",
            "date": "2026-03-25T14:35:29",
            "name": "lan966x pci device: Add support for SFPs",
            "version": 6,
            "mbox": "http://patchwork.ozlabs.org/series/497454/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215979/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215979/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-gpio+bounces-34148-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-gpio@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=2gt8oXAR;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-gpio+bounces-34148-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=\"2gt8oXAR\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=185.246.84.56",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=bootlin.com"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgrWv4w6tz1xy3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 02:32:59 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id BD1293184B5B\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 14:41:19 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 58FA73EC2C5;\n\tWed, 25 Mar 2026 14:40:02 +0000 (UTC)",
            "from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 8804B3E92AA;\n\tWed, 25 Mar 2026 14:39:56 +0000 (UTC)",
            "from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n\tby smtpout-02.galae.net (Postfix) with ESMTPS id 89C291A2EFA;\n\tWed, 25 Mar 2026 14:39:53 +0000 (UTC)",
            "from mail.galae.net (mail.galae.net [212.83.136.155])\n\tby smtpout-01.galae.net (Postfix) with ESMTPS id 60DB3601E2;\n\tWed, 25 Mar 2026 14:39:53 +0000 (UTC)",
            "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 5FE0C10451A74;\n\tWed, 25 Mar 2026 15:39:34 +0100 (CET)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774449601; cv=none;\n b=g/jyk1CaWqSaei1dsfFRuIUMlzGXIs5xb52G6YlT3KBlx7RAJkciZgJDAsBbESjnRjPUPKJSDuBJmsl7kiJkq3UUUxuJPO4Dazi1Ed7TB/Qc4LBt6OoLj1lzbh2+e9Z3gnQwX9ETk5H7kCo846cWp7uv27WgjH64pMd5Z1H95qs=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774449601; c=relaxed/simple;\n\tbh=L23lGgbCNqkBwJpNpYsPxMg7r57kvKFqnA/eUe0ik7I=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=h5o2TMJdxccrhPqLSC1BYDjr4MsV2NA+hJAZBaNJfUN0TmIyAkplLobe1qdH9ffWnWHWcKLvTVliZv5uDRel0r5bbp7MM13G0iAxS3p4XQ0qvBKmaYB9Fm1XRiv+UnzA3OyVDKMgF5y8xZIJ6Ux0tFfNH7LrowRY05Y3b8S2TCo=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com;\n spf=pass smtp.mailfrom=bootlin.com;\n dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com\n header.b=2gt8oXAR; arc=none smtp.client-ip=185.246.84.56",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n\tt=1774449590; h=from:subject:date:message-id:to:cc:mime-version:\n\t content-transfer-encoding:in-reply-to:references;\n\tbh=iMwFVtskD7lrHa/yvIrbdu/L2Of80knkDmIMEmyrkXU=;\n\tb=2gt8oXAR258GdJ4ulaRWWHTFbMH3N/SiTChjp6RkQnCNVIcJ+EnvdEb+P1Y/C4AfQcdBps\n\to7aEnPIXSMsqTZmfbVYo0jo7VKQUxmFJe2e4W3Afh22teE4YJCcMPZRFdPDNahV14NM9rf\n\tesSYoi1yXAH2YRsdn+c4EpjIpbGNt99ryldZnJHUPb0DuFO/p74u4bj4fi0P1J1DSMXxDh\n\tR1CI9Tdm1mXsPdneDvIoRDf0+I04tBx3k8ZQ9o8j/AL9P6ghAqXsTJOe3AWnBOu/kAY+3k\n\tHd78qxaDWxhnjYdWy4LMU9Jr6WPfYwTKdZ1u5eYhm1D1q0xi2W11ReQNQDDp9g==",
        "From": "Herve Codina <herve.codina@bootlin.com>",
        "To": "Andrew Lunn <andrew@lunn.ch>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tGeert Uytterhoeven <geert+renesas@glider.be>,\n\tKalle Niemi <kaleposti@gmail.com>,\n\tMatti Vaittinen <mazziesaccount@gmail.com>,\n\tGreg Kroah-Hartman <gregkh@linuxfoundation.org>,\n\t\"Rafael J. Wysocki\" <rafael@kernel.org>,\n\tDanilo Krummrich <dakr@kernel.org>,\n\tFrank Li <Frank.Li@nxp.com>,\n\tSascha Hauer <s.hauer@pengutronix.de>,\n\tPengutronix Kernel Team <kernel@pengutronix.de>,\n\tFabio Estevam <festevam@gmail.com>,\n\tMichael Turquette <mturquette@baylibre.com>,\n\tStephen Boyd <sboyd@kernel.org>,\n\tAndi Shyti <andi.shyti@kernel.org>,\n\tWolfram Sang <wsa+renesas@sang-engineering.com>,\n\tPeter Rosin <peda@axentia.se>,\n\tArnd Bergmann <arnd@arndb.de>,\n\tHerve Codina <herve.codina@bootlin.com>,\n\tSaravana Kannan <saravanak@kernel.org>,\n\tBjorn Helgaas <bhelgaas@google.com>,\n\tCharles Keepax <ckeepax@opensource.cirrus.com>,\n\tRichard Fitzgerald <rf@opensource.cirrus.com>,\n\tDavid Rhodes <david.rhodes@cirrus.com>,\n\tLinus Walleij <linusw@kernel.org>,\n\tUlf Hansson <ulf.hansson@linaro.org>,\n\tMark Brown <broonie@kernel.org>,\n\tLen Brown <lenb@kernel.org>,\n\tAndy Shevchenko <andriy.shevchenko@linux.intel.com>,\n\tDaniel Scally <djrscally@gmail.com>,\n\tHeikki Krogerus <heikki.krogerus@linux.intel.com>,\n\tSakari Ailus <sakari.ailus@linux.intel.com>,\n\tDavidlohr Bueso <dave@stgolabs.net>,\n\tJonathan Cameron <jonathan.cameron@huawei.com>,\n\tDave Jiang <dave.jiang@intel.com>,\n\tAlison Schofield <alison.schofield@intel.com>,\n\tVishal Verma <vishal.l.verma@intel.com>,\n\tIra Weiny <ira.weiny@intel.com>,\n\tDan Williams <dan.j.williams@intel.com>,\n\tShawn Guo <shawnguo@kernel.org>",
        "Cc": "Wolfram Sang <wsa@kernel.org>,\n\tlinux-kernel@vger.kernel.org,\n\tdriver-core@lists.linux.dev,\n\timx@lists.linux.dev,\n\tlinux-arm-kernel@lists.infradead.org,\n\tlinux-clk@vger.kernel.org,\n\tlinux-i2c@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-pci@vger.kernel.org,\n\tlinux-sound@vger.kernel.org,\n\tpatches@opensource.cirrus.com,\n\tlinux-gpio@vger.kernel.org,\n\tlinux-pm@vger.kernel.org,\n\tlinux-spi@vger.kernel.org,\n\tlinux-acpi@vger.kernel.org,\n\tlinux-cxl@vger.kernel.org,\n\tAllan Nielsen <allan.nielsen@microchip.com>,\n\tHoratiu Vultur <horatiu.vultur@microchip.com>,\n\tSteen Hegelund <steen.hegelund@microchip.com>,\n\tLuca Ceresoli <luca.ceresoli@bootlin.com>,\n\tThomas Petazzoni <thomas.petazzoni@bootlin.com>",
        "Subject": "[PATCH v6 12/27] PCI: of: Set fwnode device of newly created PCI\n device nodes",
        "Date": "Wed, 25 Mar 2026 15:35:39 +0100",
        "Message-ID": "<20260325143555.451852-13-herve.codina@bootlin.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<20260325143555.451852-1-herve.codina@bootlin.com>",
        "References": "<20260325143555.451852-1-herve.codina@bootlin.com>",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-gpio@vger.kernel.org",
        "List-Id": "<linux-gpio.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-gpio+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-gpio+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Last-TLS-Session-Version": "TLSv1.3"
    },
    "content": "Device-tree node can be created when CONFIG_PCI_DYNAMIC_OF_NODES. Those\nnode are created and filled based on PCI core information but the\nfwnode device field is not set.\n\nWhen later an overlay is applied, this confuses fw_devlink. Indeed,\nwithout any device attached to the node, fw_devlink considers that this\nnode will never become a device. When this node is pointed as a\nsupplier, devlink looks at its ancestors in order to find a node with a\ndevice that could be used as the supplier.\n\nIn the PCI use case, this leads to links that wrongly use the PCI root\nbridge device as the supplier instead of the expected PCI device.\n\nSetting the fwnode device to the device of the PCI device allows devlink\nto use this device as a supplier and so, correct links are created.\n\nSigned-off-by: Herve Codina <herve.codina@bootlin.com>\n---\n drivers/pci/of.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/drivers/pci/of.c b/drivers/pci/of.c\nindex 5fb7f501fd35..b694fcda16b1 100644\n--- a/drivers/pci/of.c\n+++ b/drivers/pci/of.c\n@@ -709,6 +709,13 @@ void of_pci_make_dev_node(struct pci_dev *pdev)\n \tif (ret)\n \t\tgoto out_free_node;\n \n+\t/*\n+\t * Set the fwnode device in order to have fw_devlink creating links\n+\t * pointing to this PCI device instead of walking up to the PCI host\n+\t * bridge.\n+\t */\n+\tfw_devlink_set_device(&np->fwnode, &pdev->dev);\n+\n \tret = of_changeset_apply(cset);\n \tif (ret)\n \t\tgoto out_free_node;\n",
    "prefixes": [
        "v6",
        "12/27"
    ]
}