Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2231311/?format=api
{ "id": 2231311, "url": "http://patchwork.ozlabs.org/api/patches/2231311/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/130ce567f23fd6eef8f5fa7273480a0e3ff2d1d9.1777562482.git.geert+renesas@glider.be/", "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": "<130ce567f23fd6eef8f5fa7273480a0e3ff2d1d9.1777562482.git.geert+renesas@glider.be>", "list_archive_url": null, "date": "2026-04-30T15:24:42", "name": "pinctrl: renesas: sh-pfc: Implement .pin_config_group_get() callback", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "f1f0f975c51bb2f4ddba5cb9ce5feaae57539f9a", "submitter": { "id": 63808, "url": "http://patchwork.ozlabs.org/api/people/63808/?format=api", "name": "Geert Uytterhoeven", "email": "geert+renesas@glider.be" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/130ce567f23fd6eef8f5fa7273480a0e3ff2d1d9.1777562482.git.geert+renesas@glider.be/mbox/", "series": [ { "id": 502327, "url": "http://patchwork.ozlabs.org/api/series/502327/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=502327", "date": "2026-04-30T15:24:42", "name": "pinctrl: renesas: sh-pfc: Implement .pin_config_group_get() callback", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502327/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231311/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231311/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-35934-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 spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-gpio+bounces-35934-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\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 4g5yst6jT1z1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 01:35:14 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id EA8B030231CD\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 15:24:57 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CF9BF221721;\n\tThu, 30 Apr 2026 15:24:54 +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 504902E7657;\n\tThu, 30 Apr 2026 15:24:52 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 99A14C2BCB3;\n\tThu, 30 Apr 2026 15:24:51 +0000 (UTC)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777562693; cv=none;\n b=Y09wYv9QvSmKTyzLPDoo3EoM6Z5gD/2Z4gh5Omg2E2INK88NhTvAldJtMTIOKaidMJ9BHwWnYJ61o1ppShd2YazQWH4IeyMeVmvKwBuWyqMK22/JjuT7pJAbN5rQx7AZtgKrc/ehnLwDvNKykbwcNB1O5SjoS6fIpurrF+SQMjY=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777562693; c=relaxed/simple;\n\tbh=Go5IO0ICsgjbSg2VRkkV0bj8rpVzNKrIIPdwX1/qHOw=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=iRVpGdvutBZfLOMrcdgLzI9SKmTlX9fMdeCZn0xa5kxMy6LLIFdN8Gk6f0PFks7A+zSXKtg/gEFxSK+fKVwXUJqTgbayb0sngevgcfhKGldsiU9Ie62SVk2CfnFGxEawXjQtEJiCJgExazDAVRoqCBgf2OWibRc2HVH2jGZm788=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201", "From": "Geert Uytterhoeven <geert+renesas@glider.be>", "To": "Linus Walleij <linusw@kernel.org>", "Cc": "linux-renesas-soc@vger.kernel.org,\n\tlinux-gpio@vger.kernel.org,\n\tGeert Uytterhoeven <geert+renesas@glider.be>", "Subject": "[PATCH] pinctrl: renesas: sh-pfc: Implement .pin_config_group_get()\n callback", "Date": "Thu, 30 Apr 2026 17:24:42 +0200", "Message-ID": "\n <130ce567f23fd6eef8f5fa7273480a0e3ff2d1d9.1777562482.git.geert+renesas@glider.be>", "X-Mailer": "git-send-email 2.43.0", "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" }, "content": "When reading /sys/kernel/debug/pinctrl/*.pinctrl-sh-pfc/pinconf-groups\nwhile CONFIG_DEBUG_PINCTRL is enabled, the user is confronted with a\nseemlingly endless stream of identical messages on the console:\n\n sh-pfc e6060000.pinctrl: cannot get configuration for pin group, missing group config get function in driver\n\nFix this by implementing the sh_pfc_pinconf_ops.pin_config_group_get()\ncallback.\n\nSigned-off-by: Geert Uytterhoeven <geert+renesas@glider.be>\n---\nTested on R-Car M2-W, R-Car H3 ES2.0, and R-Car V4M (more to follow).\nTo be queued in renesas-pinctrl for v7.2.\n\n drivers/pinctrl/renesas/pinctrl.c | 25 +++++++++++++++++++++++++\n 1 file changed, 25 insertions(+)", "diff": "diff --git a/drivers/pinctrl/renesas/pinctrl.c b/drivers/pinctrl/renesas/pinctrl.c\nindex 3a742f74ecd1dcdf..8585ed4bcfe0961d 100644\n--- a/drivers/pinctrl/renesas/pinctrl.c\n+++ b/drivers/pinctrl/renesas/pinctrl.c\n@@ -719,6 +719,30 @@ static int sh_pfc_pinconf_set(struct pinctrl_dev *pctldev, unsigned _pin,\n \treturn 0;\n }\n \n+static int sh_pfc_pinconf_group_get(struct pinctrl_dev *pctldev,\n+\t\t\t\t unsigned int group, unsigned long *config)\n+{\n+\tstruct sh_pfc_pinctrl *pmx = pinctrl_dev_get_drvdata(pctldev);\n+\tconst unsigned int *pins = pmx->pfc->info->groups[group].pins;\n+\tunsigned int num_pins = pmx->pfc->info->groups[group].nr_pins;\n+\tunsigned long prev_config = 0;\n+\tint ret;\n+\n+\tfor (unsigned int i = 0; i < num_pins; ++i) {\n+\t\tret = sh_pfc_pinconf_get(pctldev, pins[i], config);\n+\t\tif (ret)\n+\t\t\treturn ret;\n+\n+\t\t/* configs should match for all pins in the group */\n+\t\tif (i && prev_config != *config)\n+\t\t\treturn -ENOTSUPP;\n+\n+\t\tprev_config = *config;\n+\t}\n+\n+\treturn 0;\n+}\n+\n static int sh_pfc_pinconf_group_set(struct pinctrl_dev *pctldev, unsigned group,\n \t\t\t\t unsigned long *configs,\n \t\t\t\t unsigned num_configs)\n@@ -745,6 +769,7 @@ static const struct pinconf_ops sh_pfc_pinconf_ops = {\n \t.is_generic\t\t\t= true,\n \t.pin_config_get\t\t\t= sh_pfc_pinconf_get,\n \t.pin_config_set\t\t\t= sh_pfc_pinconf_set,\n+\t.pin_config_group_get\t\t= sh_pfc_pinconf_group_get,\n \t.pin_config_group_set\t\t= sh_pfc_pinconf_group_set,\n \t.pin_config_config_dbg_show\t= pinconf_generic_dump_config,\n };\n", "prefixes": [] }