Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2215992/?format=api
{ "id": 2215992, "url": "http://patchwork.ozlabs.org/api/patches/2215992/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20260325143555.451852-25-herve.codina@bootlin.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": "<20260325143555.451852-25-herve.codina@bootlin.com>", "list_archive_url": null, "date": "2026-03-25T14:35:51", "name": "[v6,24/27] misc: lan966x_pci: Introduce board specific data", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "0e6d8d5946d0d21b98199eb4e473d927cee8e1b7", "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-pci/patch/20260325143555.451852-25-herve.codina@bootlin.com/mbox/", "series": [ { "id": 497453, "url": "http://patchwork.ozlabs.org/api/series/497453/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=497453", "date": "2026-03-25T14:35:27", "name": "lan966x pci device: Add support for SFPs", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/497453/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2215992/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2215992/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-pci+bounces-51095-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-pci@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=eJ4BmFcA;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-51095-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=\"eJ4BmFcA\"", "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\n [IPv6:2600:3c04:e001:36c::12fc:5321])\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 4fgrfs1bpcz1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 02:39:01 +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 1AD58323E362\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 14:48:49 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 37D0A3F0A8E;\n\tWed, 25 Mar 2026 14:43:29 +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 02CFD3E63A0;\n\tWed, 25 Mar 2026 14:43:25 +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 E9BB01A2F95;\n\tWed, 25 Mar 2026 14:43:23 +0000 (UTC)", "from mail.galae.net (mail.galae.net [212.83.136.155])\n\tby smtpout-01.galae.net (Postfix) with ESMTPS id 9F3A3601FA;\n\tWed, 25 Mar 2026 14:43:23 +0000 (UTC)", "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id 9A1EE10451522;\n\tWed, 25 Mar 2026 15:43:02 +0100 (CET)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774449809; cv=none;\n b=Kv4HcHjZl8pX6ynGcyiZM54kZdvJPz6dZl5Gwj5O4dsm2qzLHj9wgzHRWZiWjOAcs2QZDFHKxTbNxKdPlVTGQq0ylZk8Czmyz8BbCZX+pTSBMEBT6kJ6VSJ6WLKt9mzjXlPB+ubj4qjHwY3gb/ESkHJq/UNWgzHGuEitY1TgoWs=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774449809; c=relaxed/simple;\n\tbh=NTK3i5tT9QWPEOEZ2JcdNqTuIHC5BhBkEo4P1dG/bNY=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=u2bDfLdkW3ctjJSYDlpu1pIL+Gd8kJ2oAVFc/JnZIX3bX9d6HiwyFob4zeETnJPt/CoLsYukVqj0HduaAvGxfIhwNA0bU2kdSfdYZ36YqptZQb4iGEfDfrkxwTtS7RaSUGLae9TUr6KkYwBFWMmnLoftjE3vn+3WYX3yZ7qIdzc=", "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=eJ4BmFcA; 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=1774449800; h=from:subject:date:message-id:to:cc:mime-version:\n\t content-transfer-encoding:in-reply-to:references;\n\tbh=dyU2PMsXAmj3EbT2+UZQ+YSlvbKU0N9ZIMJJlxdw490=;\n\tb=eJ4BmFcAjAHO1RljChWdOyoj3omI/HuwZmTpXXHQa1umyn9qPlvXMX0qFWHX41OtrKkEA1\n\tGvBSGgfM4yrx92BviPWee8JItzhEODZaOjL49ET1ZPQJiTDPdWu67AmxZcwfgAM7RHexh8\n\tBBfjF9gNBx3YobP5vg27CSbfUTTHQgebXMzwb/Y9URTy9Fp70//V99F42kh0Q7vhs0OoVB\n\tZvGI2Rl+HJieKsxTPvtA4ZlBtkBHUg3o5akZuVa9XdzJTMNomY3mmyUIb3q7OOjh9BmaDO\n\twfp9AO3ccuHOnRdShguOtsQSJoF8butGZEl8ck8Nswog14Pj0jSZOuIP7WrmCw==", "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 24/27] misc: lan966x_pci: Introduce board specific data", "Date": "Wed, 25 Mar 2026 15:35:51 +0100", "Message-ID": "<20260325143555.451852-25-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-pci@vger.kernel.org", "List-Id": "<linux-pci.vger.kernel.org>", "List-Subscribe": "<mailto:linux-pci+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-pci+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Last-TLS-Session-Version": "TLSv1.3" }, "content": "Only one device-tree overlay (lan966x_evb_lan9662_nic.dtbo) is handled\nand this overlay is directly referenced in lan966x_pci_load_overlay().\n\nThis avoid to use the code for an other board.\n\nIn order to be more generic and to allow support for other boards (PCI\nVendor/Device IDs), introduce the lan966x_pci_info structure and attach\nit to PCI Vendor/Device IDs handled by the driver.\n\nThis structure contains information related to the PCI board such as\ninformation related to the dtbo describing the board we have to load.\n\nSigned-off-by: Herve Codina <herve.codina@bootlin.com>\nReviewed-by: Andrew Lunn <andrew@lunn.ch>\n---\n drivers/misc/lan966x_pci.c | 30 ++++++++++++++++++++++--------\n 1 file changed, 22 insertions(+), 8 deletions(-)", "diff": "diff --git a/drivers/misc/lan966x_pci.c b/drivers/misc/lan966x_pci.c\nindex e6d1fce0b116..041e92f924c4 100644\n--- a/drivers/misc/lan966x_pci.c\n+++ b/drivers/misc/lan966x_pci.c\n@@ -18,10 +18,6 @@\n #include <linux/pci_ids.h>\n #include <linux/slab.h>\n \n-/* Embedded dtbo symbols created by cmd_wrap_S_dtb in scripts/Makefile.lib */\n-extern char __dtbo_lan966x_evb_lan9662_nic_begin[];\n-extern char __dtbo_lan966x_evb_lan9662_nic_end[];\n-\n struct pci_dev_intr_ctrl {\n \tstruct pci_dev *pci_dev;\n \tstruct irq_domain *irq_domain;\n@@ -118,17 +114,23 @@ static int devm_pci_dev_create_intr_ctrl(struct pci_dev *pdev)\n \treturn devm_add_action_or_reset(&pdev->dev, devm_pci_dev_remove_intr_ctrl, intr_ctrl);\n }\n \n+struct lan966x_pci_info {\n+\tvoid *dtbo_begin;\n+\tvoid *dtbo_end;\n+};\n+\n struct lan966x_pci {\n \tstruct device *dev;\n \tint ovcs_id;\n+\tconst struct lan966x_pci_info *info;\n };\n \n static int lan966x_pci_load_overlay(struct lan966x_pci *data)\n {\n-\tu32 dtbo_size = __dtbo_lan966x_evb_lan9662_nic_end - __dtbo_lan966x_evb_lan9662_nic_begin;\n-\tvoid *dtbo_start = __dtbo_lan966x_evb_lan9662_nic_begin;\n+\tconst struct lan966x_pci_info *info = data->info;\n \n-\treturn of_overlay_fdt_apply(dtbo_start, dtbo_size, &data->ovcs_id, dev_of_node(data->dev));\n+\treturn of_overlay_fdt_apply(info->dtbo_begin, info->dtbo_end - info->dtbo_begin,\n+\t\t\t\t &data->ovcs_id, dev_of_node(data->dev));\n }\n \n static void lan966x_pci_unload_overlay(struct lan966x_pci *data)\n@@ -169,6 +171,9 @@ static int lan966x_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i\n \n \tpci_set_drvdata(pdev, data);\n \tdata->dev = dev;\n+\tdata->info = (const struct lan966x_pci_info *)id->driver_data;\n+\tif (!data->info)\n+\t\treturn -EINVAL;\n \n \tret = lan966x_pci_load_overlay(data);\n \tif (ret)\n@@ -196,8 +201,17 @@ static void lan966x_pci_remove(struct pci_dev *pdev)\n \tlan966x_pci_unload_overlay(data);\n }\n \n+/* Embedded dtbo symbols created by cmd_wrap_S_dtb in scripts/Makefile.lib */\n+extern char __dtbo_lan966x_evb_lan9662_nic_begin[];\n+extern char __dtbo_lan966x_evb_lan9662_nic_end[];\n+\n+static struct lan966x_pci_info evb_lan9662_nic_info = {\n+\t.dtbo_begin = __dtbo_lan966x_evb_lan9662_nic_begin,\n+\t.dtbo_end = __dtbo_lan966x_evb_lan9662_nic_end,\n+};\n+\n static struct pci_device_id lan966x_pci_ids[] = {\n-\t{ PCI_DEVICE(PCI_VENDOR_ID_EFAR, PCI_DEVICE_ID_EFAR_LAN9662) },\n+\t{ PCI_DEVICE_DATA(EFAR, LAN9662, &evb_lan9662_nic_info) },\n \t{ }\n };\n MODULE_DEVICE_TABLE(pci, lan966x_pci_ids);\n", "prefixes": [ "v6", "24/27" ] }