Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216491/?format=api
{ "id": 2216491, "url": "http://patchwork.ozlabs.org/api/patches/2216491/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260326152656.14030-4-adilov@disroot.org/", "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": "<20260326152656.14030-4-adilov@disroot.org>", "list_archive_url": null, "date": "2026-03-26T15:26:51", "name": "[v5,3/8] i2c: rtl9300: introduce F_BUSY to the reg_fields struct", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "853f9133468369b981c7ea6fef2a45da6938d982", "submitter": { "id": 92795, "url": "http://patchwork.ozlabs.org/api/people/92795/?format=api", "name": "Rustam Adilov", "email": "adilov@disroot.org" }, "delegate": { "id": 149066, "url": "http://patchwork.ozlabs.org/api/users/149066/?format=api", "username": "cazzacarna", "first_name": "Andi", "last_name": "Shyti", "email": "andi.shyti@kernel.org" }, "mbox": "http://patchwork.ozlabs.org/project/linux-i2c/patch/20260326152656.14030-4-adilov@disroot.org/mbox/", "series": [ { "id": 497610, "url": "http://patchwork.ozlabs.org/api/series/497610/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-i2c/list/?series=497610", "date": "2026-03-26T15:26:49", "name": "i2c: rtl9300: support for RTL9607C I2C controller", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/497610/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216491/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216491/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-i2c+bounces-16807-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 secure) header.d=disroot.org header.i=@disroot.org header.a=rsa-sha256\n header.s=mail header.b=ikcZANm7;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c15:e001:75::12fc:5321; helo=sin.lore.kernel.org;\n envelope-from=linux-i2c+bounces-16807-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org\n header.b=\"ikcZANm7\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=178.21.23.139", "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=disroot.org", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=disroot.org" ], "Received": [ "from sin.lore.kernel.org (sin.lore.kernel.org\n [IPv6:2600:3c15:e001:75::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 4fhSmG08DCz1yGD\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 02:45:50 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 75F1931B9F26\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 15:29:20 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CFEA040B6CD;\n\tThu, 26 Mar 2026 15:27:34 +0000 (UTC)", "from layka.disroot.org (layka.disroot.org [178.21.23.139])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id D3390407119;\n\tThu, 26 Mar 2026 15:27:32 +0000 (UTC)", "from [127.0.0.1] (localhost [127.0.0.1])\n\tby disroot.org (Postfix) with ESMTP id 41C5A26452;\n\tThu, 26 Mar 2026 16:27:31 +0100 (CET)", "from layka.disroot.org ([127.0.0.1])\n by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP\n id 0-J0etiwooBu; Thu, 26 Mar 2026 16:27:30 +0100 (CET)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774538854; cv=none;\n b=SiVBPd+J2TMJ3xjA+bYkM5pl54P7yPhCeIvNRnhZnlNwyWTHVS7IC0c5Xu4WF2Spiuo7lk8A2/JGUY1ZQ1jJ4hOUZZAGCgp3hDyl3+n7M5Z6ifqm3EBFripRrm3RfySvOc6jvNBHI/zwAiOhA+YEC5gpXnNY2GyF+ves3JTZ5pY=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774538854; c=relaxed/simple;\n\tbh=GwaO3Jgs7I+IjOxIFQXKkawzKx2llBDskSmUtS3EUww=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=El0SSFEV6Om/5/UWSJhUQfIclWEsLyOQ71hZ4tcmDyk5EvNj1W2TCJKzPgaZ1mEIQ3C06bYNjMSqYtvQDeaSJI4a3pGfk+frQpDbsX3vZQGVApjD/s2axs32R6Ax+lUIvnSs37GP81DzRs6OR9V5bDTU3USWwhn/P/75c/y5hmY=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=disroot.org;\n spf=pass smtp.mailfrom=disroot.org;\n dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org\n header.b=ikcZANm7; arc=none smtp.client-ip=178.21.23.139", "X-Virus-Scanned": "SPAM Filter at disroot.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;\n\tt=1774538850; bh=GwaO3Jgs7I+IjOxIFQXKkawzKx2llBDskSmUtS3EUww=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References;\n\tb=ikcZANm7j49padSBxOPn90xV7sjTFE+IaYcYOi72c1bAIDForJIHv0RjBhwdOTcwM\n\t xGF4lO8AsVDIKhLW9QcC7mtgLKkwJYQd4yrQb1Q8C0uXdy/XuhjhHjwXR1gPYMgqqb\n\t 1qJZat0LlQrCqxongaCOysCbUZYXpLNyBoAhiCBzSUp2+MzhIUN3AFVCw42Mqpp7l/\n\t JIkhtlvEXIDckZ3Of71MM9rFK5kE5XMRAu+OSL2ewEFh5UiNrmmozz3MN/i4s1Bki1\n\t bgDoyBctISRLSfCdqv1YqnTDCmwPlu3IaC+hEhAfOhvL4i8ii2cQ3+1xR4FSO6ceqa\n\t qerbDdtss+U6g==", "From": "Rustam Adilov <adilov@disroot.org>", "To": "Chris Packham <chris.packham@alliedtelesis.co.nz>,\n\tAndi Shyti <andi.shyti@kernel.org>,\n\tRob Herring <robh@kernel.org>,\n\tKrzysztof Kozlowski <krzk+dt@kernel.org>,\n\tConor Dooley <conor+dt@kernel.org>,\n\tlinux-i2c@vger.kernel.org,\n\tdevicetree@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org", "Cc": "Rustam Adilov <adilov@disroot.org>", "Subject": "[PATCH v5 3/8] i2c: rtl9300: introduce F_BUSY to the reg_fields\n struct", "Date": "Thu, 26 Mar 2026 20:26:51 +0500", "Message-ID": "<20260326152656.14030-4-adilov@disroot.org>", "In-Reply-To": "<20260326152656.14030-1-adilov@disroot.org>", "References": "<20260326152656.14030-1-adilov@disroot.org>", "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-Transfer-Encoding": "8bit" }, "content": "In RTL9607C i2c controller the busy check operation is done on the\nseparate bit of the command register as opposed to self clearing\ncommand trigger bit on the rtl9300 and rtl9310 i2c controllers.\n\nIntroduce a new F_BUSY field to the reg_fields struct for that\nand change the regmap read poll function to use F_BUSY\ninstead of I2C_TRIG.\n\nReviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>\nSigned-off-by: Rustam Adilov <adilov@disroot.org>\n---\n drivers/i2c/busses/i2c-rtl9300.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/i2c/busses/i2c-rtl9300.c b/drivers/i2c/busses/i2c-rtl9300.c\nindex 2cada6038b44..e40b4692a3fa 100644\n--- a/drivers/i2c/busses/i2c-rtl9300.c\n+++ b/drivers/i2c/busses/i2c-rtl9300.c\n@@ -53,6 +53,7 @@ enum rtl9300_i2c_reg_fields {\n \tF_SCL_SEL,\n \tF_SDA_OUT_SEL,\n \tF_SDA_SEL,\n+\tF_BUSY,\n \n \t/* keep last */\n \tF_NUM_FIELDS\n@@ -262,7 +263,7 @@ static int rtl9300_i2c_do_xfer(struct rtl9300_i2c *i2c, struct rtl9300_i2c_xfer\n \tif (ret)\n \t\treturn ret;\n \n-\tret = regmap_field_read_poll_timeout(i2c->fields[F_I2C_TRIG], val, !val, 100, 100000);\n+\tret = regmap_field_read_poll_timeout(i2c->fields[F_BUSY], val, !val, 100, 100000);\n \tif (ret)\n \t\treturn ret;\n \n@@ -505,6 +506,7 @@ static const struct rtl9300_i2c_drv_data rtl9300_i2c_drv_data = {\n \t\t[F_MEM_ADDR_WIDTH]\t= MST_REG_FIELD(RTL9300_I2C_MST_CTRL2, 2, 3),\n \t\t[F_SCL_FREQ]\t\t= MST_REG_FIELD(RTL9300_I2C_MST_CTRL2, 0, 1),\n \t\t[F_SDA_SEL]\t\t= GLB_REG_FIELD(RTL9300_I2C_MST_GLB_CTRL, 0, 7),\n+\t\t[F_BUSY]\t\t= MST_REG_FIELD(RTL9300_I2C_MST_CTRL1, 0, 0),\n \t},\n \t.select_scl = rtl9300_i2c_select_scl,\n \t.rd_reg = RTL9300_I2C_MST_DATA_WORD0,\n@@ -527,6 +529,7 @@ static const struct rtl9300_i2c_drv_data rtl9310_i2c_drv_data = {\n \t\t[F_I2C_FAIL]\t\t= MST_REG_FIELD(RTL9310_I2C_MST_CTRL, 1, 1),\n \t\t[F_I2C_TRIG]\t\t= MST_REG_FIELD(RTL9310_I2C_MST_CTRL, 0, 0),\n \t\t[F_MEM_ADDR]\t\t= MST_REG_FIELD(RTL9310_I2C_MST_MEMADDR_CTRL, 0, 23),\n+\t\t[F_BUSY]\t\t= MST_REG_FIELD(RTL9310_I2C_MST_CTRL, 0, 0),\n \t},\n \t.select_scl = rtl9310_i2c_select_scl,\n \t.rd_reg = RTL9310_I2C_MST_DATA_CTRL,\n", "prefixes": [ "v5", "3/8" ] }