Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2196164/?format=api
{ "id": 2196164, "url": "http://patchwork.ozlabs.org/api/patches/2196164/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260213-i2c-xiic-v11-3-5d18aea11bde@nexthop.ai/", "project": { "id": 35, "url": "http://patchwork.ozlabs.org/api/projects/35/?format=api", "name": "Linux I2C development", "link_name": "linux-i2c", "list_id": "linux-i2c.vger.kernel.org", "list_email": "linux-i2c@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260213-i2c-xiic-v11-3-5d18aea11bde@nexthop.ai>", "list_archive_url": null, "date": "2026-02-13T00:15:18", "name": "[v11,3/7] i2c: xiic: switch to generic device property accessors", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1baecb5b6cf22d3985f2ea508134d005ae86cbb3", "submitter": { "id": 92480, "url": "http://patchwork.ozlabs.org/api/people/92480/?format=api", "name": "Abdurrahman Hussain via B4 Relay", "email": "devnull+abdurrahman.nexthop.ai@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260213-i2c-xiic-v11-3-5d18aea11bde@nexthop.ai/mbox/", "series": [ { "id": 492044, "url": "http://patchwork.ozlabs.org/api/series/492044/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=492044", "date": "2026-02-13T00:15:16", "name": "i2c: xiic: use generic device property accessors", "version": 11, "mbox": "http://patchwork.ozlabs.org/series/492044/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2196164/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2196164/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-i2c+bounces-15960-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-i2c@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=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=cGv1/1c1;\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-i2c+bounces-15960-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"cGv1/1c1\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "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 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fBt5068fxz1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 11:16:36 +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 12060305B591\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 13 Feb 2026 00:15:40 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 58943224AFA;\n\tFri, 13 Feb 2026 00:15:23 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\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 D8E0520A5F3;\n\tFri, 13 Feb 2026 00:15:22 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPS id 99F50C2BCB4;\n\tFri, 13 Feb 2026 00:15:22 +0000 (UTC)", "from aws-us-west-2-korg-lkml-1.web.codeaurora.org\n (localhost.localdomain [127.0.0.1])\n\tby smtp.lore.kernel.org (Postfix) with ESMTP id 6AA6CEEA874;\n\tFri, 13 Feb 2026 00:15:22 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1770941722; cv=none;\n b=SQhLncfY6KcJqhrhGnjCdF8VKzLVD8UmR+lyA5q2jZIJIekLQ6mPLnN4yigcxuj+7B5KPusj/zvHy8YeI4yp3IcD1ZkPvJjoV72fLKv2dcuWvRvQW7+wf3CV2OnYL+d6hnboQ4LjGNAfyx+0p7p06j2RvIjkyMxVEaHeexn0fxE=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1770941722; c=relaxed/simple;\n\tbh=1O5PUHoxxKw2p2akHouHKG8Ft1fJjx6WgY2AUN8BMsk=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=r0Bfh30TPpalM3g7v3t3ZV/dz8l7gvzQrtADIvEO6qQgy2hJIOi1gzXaxAdAMlYEYFaetDFTWw6YPoHD3VMssmVceBk9FbIYS1usS7E0gAW1r4RhxgePvR3IHyfqsuL8sOAmVuOEW91J/yqgdeUOURpFGGVZLviXbXqjke0UsUw=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=cGv1/1c1; arc=none smtp.client-ip=10.30.226.201", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1770941722;\n\tbh=1O5PUHoxxKw2p2akHouHKG8Ft1fJjx6WgY2AUN8BMsk=;\n\th=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From;\n\tb=cGv1/1c1FeTIsd8AhaT60lWIlSAF25jnI+7XzAuNf/cWVzIFPXn9Tjh0vJi48ICan\n\t eww5DCdknKbWc7UuL7sVk4ruByDEHMKkgvVtKSOcvMhdRIuWsHWrlOZixRWwwFlEj0\n\t Oia0TJJ8K9+mnoO3fROy/DfpzAq2LLVNC7ufHL0s6oeVrA7wcHbE6GAxP9CWWUtz7f\n\t v2kHsv2mcPNtIOGYVeoOhGvdE6HnqISqql+ZQs8omxxVxYQrhK205+E9Oq3dZvwzlR\n\t hpTTz8anbTtxTgpngMeXri+i3EDQD50Ahu9ZS5P+f5IYpVv+zOM5f4RrBhSmTKpZ68\n\t i9guB9+VdOj2Q==", "From": "Abdurrahman Hussain via B4 Relay\n <devnull+abdurrahman.nexthop.ai@kernel.org>", "Date": "Fri, 13 Feb 2026 00:15:18 +0000", "Subject": "[PATCH v11 3/7] i2c: xiic: switch to generic device property\n accessors", "Precedence": "bulk", "X-Mailing-List": "linux-i2c@vger.kernel.org", "List-Id": "<linux-i2c.vger.kernel.org>", "List-Subscribe": "<mailto:linux-i2c+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-i2c+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20260213-i2c-xiic-v11-3-5d18aea11bde@nexthop.ai>", "References": "<20260213-i2c-xiic-v11-0-5d18aea11bde@nexthop.ai>", "In-Reply-To": "<20260213-i2c-xiic-v11-0-5d18aea11bde@nexthop.ai>", "To": "Michal Simek <michal.simek@amd.com>, Andi Shyti <andi.shyti@kernel.org>,\n Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,\n Conor Dooley <conor+dt@kernel.org>", "Cc": "Andy Shevchenko <andriy.shevchenko@intel.com>,\n linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org,\n linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,\n Abdurrahman Hussain <abdurrahman@nexthop.ai>", "X-Mailer": "b4 0.14.3", "X-Developer-Signature": "v=1; a=ed25519-sha256; t=1770941721; l=2990;\n i=abdurrahman@nexthop.ai; s=20260119; h=from:subject:message-id;\n bh=yBdDm5XrgiTYSbdBCd79of4U+CAq6rfP4gVjghqE/40=;\n b=4lq0ZYKflgaUHW892I78VJy+aDQaESTaz2woz9nszG6HkhZtLaekJ/ITyFI/3mgTPi0MJWowO\n eQUM07sSzCtCDSkntmEbWyu+81RtnlXFusHnfNQC8mH8WJyMNhZbHpa", "X-Developer-Key": "i=abdurrahman@nexthop.ai; a=ed25519;\n pk=S+ysnf+NwMcBdHBlyKIUEAtaFGSIhQwcJcgcXhq0osg=", "X-Endpoint-Received": "by B4 Relay for abdurrahman@nexthop.ai/20260119 with\n auth_id=608", "X-Original-From": "Abdurrahman Hussain <abdurrahman@nexthop.ai>", "Reply-To": "abdurrahman@nexthop.ai" }, "content": "From: Abdurrahman Hussain <abdurrahman@nexthop.ai>\n\nUse generic device property accessors.\n\nReviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>\nSigned-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>\n---\n drivers/i2c/busses/i2c-xiic.c | 20 ++++++--------------\n 1 file changed, 6 insertions(+), 14 deletions(-)", "diff": "diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c\nindex 99286af2a0d7..20cee7b6200c 100644\n--- a/drivers/i2c/busses/i2c-xiic.c\n+++ b/drivers/i2c/busses/i2c-xiic.c\n@@ -27,7 +27,6 @@\n #include <linux/platform_data/i2c-xiic.h>\n #include <linux/io.h>\n #include <linux/slab.h>\n-#include <linux/of.h>\n #include <linux/clk.h>\n #include <linux/pm_runtime.h>\n #include <linux/iopoll.h>\n@@ -1408,7 +1407,6 @@ static const struct i2c_adapter xiic_adapter = {\n \t.algo = &xiic_algorithm,\n };\n \n-#if defined(CONFIG_OF)\n static const struct xiic_version_data xiic_2_00 = {\n \t.quirks = DYNAMIC_MODE_READ_BROKEN_BIT,\n };\n@@ -1419,14 +1417,13 @@ static const struct of_device_id xiic_of_match[] = {\n \t{},\n };\n MODULE_DEVICE_TABLE(of, xiic_of_match);\n-#endif\n \n static int xiic_i2c_probe(struct platform_device *pdev)\n {\n \tstruct device *dev = &pdev->dev;\n \tstruct xiic_i2c *i2c;\n \tstruct xiic_i2c_platform_data *pdata;\n-\tconst struct of_device_id *match;\n+\tconst struct xiic_version_data *data;\n \tstruct resource *res;\n \tint ret, irq;\n \tu8 i;\n@@ -1436,12 +1433,9 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \tif (!i2c)\n \t\treturn -ENOMEM;\n \n-\tmatch = of_match_node(xiic_of_match, pdev->dev.of_node);\n-\tif (match && match->data) {\n-\t\tconst struct xiic_version_data *data = match->data;\n-\n+\tdata = device_get_match_data(dev);\n+\tif (data)\n \t\ti2c->quirks = data->quirks;\n-\t}\n \n \ti2c->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res);\n \tif (IS_ERR(i2c->base))\n@@ -1458,7 +1452,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \ti2c->adap = xiic_adapter;\n \ti2c_set_adapdata(&i2c->adap, i2c);\n \ti2c->adap.dev.parent = &pdev->dev;\n-\ti2c->adap.dev.of_node = pdev->dev.of_node;\n+\tdevice_set_node(&i2c->adap.dev, dev_fwnode(dev));\n \tsnprintf(i2c->adap.name, sizeof(i2c->adap.name),\n \t\t DRIVER_NAME \" %s\", pdev->name);\n \n@@ -1482,8 +1476,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \n \t/* SCL frequency configuration */\n \ti2c->input_clk = clk_get_rate(i2c->clk);\n-\tret = of_property_read_u32(pdev->dev.of_node, \"clock-frequency\",\n-\t\t\t\t &i2c->i2c_clk);\n+\tret = device_property_read_u32(dev, \"clock-frequency\", &i2c->i2c_clk);\n \t/* If clock-frequency not specified in DT, do not configure in SW */\n \tif (ret || i2c->i2c_clk > I2C_MAX_FAST_MODE_PLUS_FREQ)\n \t\ti2c->i2c_clk = 0;\n@@ -1494,8 +1487,7 @@ static int xiic_i2c_probe(struct platform_device *pdev)\n \tif (ret)\n \t\treturn ret;\n \n-\ti2c->singlemaster =\n-\t\tof_property_read_bool(pdev->dev.of_node, \"single-master\");\n+\ti2c->singlemaster = device_property_read_bool(dev, \"single-master\");\n \n \t/*\n \t * Detect endianness\n", "prefixes": [ "v11", "3/7" ] }