Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216528/?format=api
{ "id": 2216528, "url": "http://patchwork.ozlabs.org/api/patches/2216528/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260326162459.101414-1-biju.das.jz@bp.renesas.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": "<20260326162459.101414-1-biju.das.jz@bp.renesas.com>", "list_archive_url": null, "date": "2026-03-26T16:24:51", "name": "[v3] pinctrl: renesas: rzg2l: Fix save/restore of {IOLH,IEN,PUPD,SMT} registers", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c9be0da8c07edcdcd9bc258970fa8ea3d9b9a83b", "submitter": { "id": 87968, "url": "http://patchwork.ozlabs.org/api/people/87968/?format=api", "name": "Biju", "email": "biju.das.au@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-gpio/patch/20260326162459.101414-1-biju.das.jz@bp.renesas.com/mbox/", "series": [ { "id": 497622, "url": "http://patchwork.ozlabs.org/api/series/497622/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-gpio/list/?series=497622", "date": "2026-03-26T16:24:51", "name": "[v3] pinctrl: renesas: rzg2l: Fix save/restore of {IOLH,IEN,PUPD,SMT} registers", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/497622/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216528/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216528/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-gpio+bounces-34217-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=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=Wq03FqpE;\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-gpio+bounces-34217-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"Wq03FqpE\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.221.50", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "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 4fhTyB6MV2z1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 03:39:30 +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 BB5163039402\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 16:25:09 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 523E13BFE24;\n\tThu, 26 Mar 2026 16:25:06 +0000 (UTC)", "from mail-wr1-f50.google.com (mail-wr1-f50.google.com\n [209.85.221.50])\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 120543FFAD5\n\tfor <linux-gpio@vger.kernel.org>; Thu, 26 Mar 2026 16:25:03 +0000 (UTC)", "by mail-wr1-f50.google.com with SMTP id\n ffacd0b85a97d-439b6d9c981so734184f8f.1\n for <linux-gpio@vger.kernel.org>;\n Thu, 26 Mar 2026 09:25:03 -0700 (PDT)", "from localhost.localdomain\n ([2a00:23c4:a758:8a01:377f:9a3e:6c94:560d])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43b919588e6sm8460951f8f.16.2026.03.26.09.25.01\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 09:25:01 -0700 (PDT)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774542306; cv=none;\n b=R9K9iB2Y0XbyJJ2KEufVVwRW9rUhBlg4DCDF9+CJxGcBmG785AsJ3v1MSppm22V4Sl1fqwVrBt2P+TenYEJLD+Ouza/hOqtkTS4VC840hSLbqEQpZYx98y2QqZdgs+lGoop5TGcffq8qj6xvMx0hf3gb7RrR327uD9hbFLcC41E=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774542306; c=relaxed/simple;\n\tbh=yRn65xz5S6D3nAmmUq5pfrFoiqpW/Jk83rHf1vrztWk=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=s3QIt2RGk5ZpY2y3MrieVQxkG8Xw0W8BAWGepZeH++QytEZ4S4tTXa1H+CmeODYTweU4aqMjNquT6KRokR/UZ9LwV8RszuknpwNZPdcs9Y0/PRYGILydKGHlSkcfOEoop1UOpNeNxuQOnNKPeXCtmpTbBb9JNnECd2RJg0H7sgc=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=Wq03FqpE; arc=none smtp.client-ip=209.85.221.50", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774542302; x=1775147102;\n darn=vger.kernel.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=Q2ce0HxX3/F0Io4jy/v+v+g0q9K7PyjffbJmK+am7Z8=;\n b=Wq03FqpEQPYzKKALhRbzEptoA2qmrXo8G4mBc41X89p1b7ioLim4uSAjC2kFs7wZVq\n BtMS7DaGJ25lCl2S0cpsN1Z46q3Uvre4gBTqy+/YTI15sODBzogdDEvx+3LuexL8vmsE\n uI6E1rYaFWG1tr6FYtnsRIqByzhlyA5LRlCZGNpyD9mfw2UETbcaTc/2K/fmljzDNYjd\n HeLpe6hOfvr9EEj3mIzDNfhk4r6c5YBVnzHh6QCoHNzENDPOLcRaH3okODBa5PgTP6Cb\n ml5TJKmLDB/8cYXYAH+o2rYXnjjJ2VkanZs+xl3sgH+rWjzrqH2r75GHhh7lSL0OYeuj\n O0aw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774542302; x=1775147102;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Q2ce0HxX3/F0Io4jy/v+v+g0q9K7PyjffbJmK+am7Z8=;\n b=SEi60EWKBmjS/xGh2EOVYMEwpPclMw2fBKef0jghs/FF2feP8A/E8XiWRPwBCebELT\n wYO1sUuqrKRpzukOtBbD5+m5CF3+5bUobetC9GJzYcFDoQzqhMTfdJlsgbawY2saJug6\n 4ZjYszFqHHaEPpDG1e2hnfElj20Sdz26MBTWkO9nhL5T3e9XZlt18diDrXnHTk63SuuB\n UrHxfeulr+8lYcxsIk1/yYRsx0ACxYgwstANC93MzwaBAfYF6oKoO8p9lFfRh+cgrZna\n SvGcTjJVWIze1Q3hzpaCpUiS+7sIoqym46NwM2fOg9xWnHsotLLkEaicll1WmchgIea4\n Q7Uw==", "X-Forwarded-Encrypted": "i=1;\n AJvYcCUX+YOp8ZDDxnMceeLTuix+QxJf9PsYsVAfiA9Cc1HIJElWTae5zezNEEkdcYEF5lJB5jcwFgJJW3H9@vger.kernel.org", "X-Gm-Message-State": "AOJu0Yzukcdt9HYQ+GKzZ/7WpRAFZ/aGfeiDrS83kLkzldlu9a+FHzSe\n\t6xn7xe4ed+HqVXl7KiQDMXuUHw/qSrKLwLYTMsCzGEp5chXUj9/+VZXN+exS4w==", "X-Gm-Gg": "ATEYQzwg2lqlvm50fzmcl6EpVd2l1P+1JqtoS5hoZXIH4qGsJcpZvKx+X4CU/Rb/f5s\n\tLhLlujGr8WG/dqYCTb7vGbvHw5MR6K2VmuNd7AiGXjqHGhSH9BCMjXF+ryNFkEuzn44xIrdzJCh\n\txVwBWJzuQ4TMVM+cqfg7WdDoa/AeynDGMe/mz5gNS0r0g11YpkucQIH3Ci3aDgxztmv5HpLkWoM\n\tMJdZvgjo2puMJcx+hKT5Bhhac+5mxpUvbcPoec4ZJ5EWObONDR4G+C+u2+iN1UyuBEIyvR/gV9E\n\tqt43ws6IC3wV8dwwm3cAuFWZNec7j9HYrXnzcKJRkhp7TpqlmrTR6eQSCcdx0jraThHN95l6p8V\n\t/W1qmNIzRq3vH5fJ0BDCaTkV6p9oFQJ/h4u4yKuDl4eUXIumc8CM53RXJUcIO/0RRdveAtUU/Es\n\tztVyw2d+wemJVnFNGIE2S/h7BnPvY++v1EYgeJQ6vnBhjoRSM4", "X-Received": "by 2002:adf:9cc1:0:b0:43b:3eef:acd9 with SMTP id\n ffacd0b85a97d-43b97a86605mr2884336f8f.27.1774542301944;\n Thu, 26 Mar 2026 09:25:01 -0700 (PDT)", "From": "Biju <biju.das.au@gmail.com>", "X-Google-Original-From": "Biju <biju.das.jz@bp.renesas.com>", "To": "Geert Uytterhoeven <geert+renesas@glider.be>,\n\tLinus Walleij <linusw@kernel.org>", "Cc": "Biju Das <biju.das.jz@bp.renesas.com>,\n\tClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>,\n\tlinux-renesas-soc@vger.kernel.org,\n\tlinux-gpio@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tPrabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,\n\tBiju Das <biju.das.au@gmail.com>", "Subject": "[PATCH v3] pinctrl: renesas: rzg2l: Fix save/restore of\n {IOLH,IEN,PUPD,SMT} registers", "Date": "Thu, 26 Mar 2026 16:24:51 +0000", "Message-ID": "<20260326162459.101414-1-biju.das.jz@bp.renesas.com>", "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": "From: Biju Das <biju.das.jz@bp.renesas.com>\n\nThe rzg2l_pinctrl_pm_setup_regs() handles save/restore of\n{IOLH,IEN,PUPD,SMT} registers during s2ram, but only for ports where all\npins share the same pincfg. Extend the code to also support ports with\nvariable pincfg per pin, so that {IOLH,IEN,PUPD,SMT} registers are\ncorrectly saved and restored for all pins.\n\nFixes: 254203f9a94c (\"pinctrl: renesas: rzg2l: Add suspend/resume support\")\nSigned-off-by: Biju Das <biju.das.jz@bp.renesas.com>\n---\nv2->v3:\n * Dropped pin_off, pin_desc, and pin_data local variables and\n instead used pctrl->desc.pins[pin + i].drv_data.\n * Started the loop at 0 so that it covers all the variable pins.\nv1->v2:\n * Updated commit description\n * Improved the logic.\n---\n drivers/pinctrl/renesas/pinctrl-rzg2l.c | 7 +++++++\n 1 file changed, 7 insertions(+)", "diff": "diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/renesas/pinctrl-rzg2l.c\nindex 863e779dda02..55e35f63343c 100644\n--- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c\n+++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c\n@@ -3012,6 +3012,13 @@ static void rzg2l_pinctrl_pm_setup_regs(struct rzg2l_pinctrl *pctrl, bool suspen\n \t\toff = RZG2L_PIN_CFG_TO_PORT_OFFSET(cfg);\n \t\tpincnt = hweight8(FIELD_GET(PIN_CFG_PIN_MAP_MASK, cfg));\n \n+\t\tif (cfg & RZG2L_VARIABLE_CFG) {\n+\t\t\tunsigned int pin = port * RZG2L_PINS_PER_PORT;\n+\n+\t\t\tfor (unsigned int i = 0; i < RZG2L_PINS_PER_PORT; i++)\n+\t\t\t\tcfg |= *(u64 *)pctrl->desc.pins[pin + i].drv_data;\n+\t\t}\n+\n \t\tcaps = FIELD_GET(PIN_CFG_MASK, cfg);\n \t\thas_iolh = !!(caps & (PIN_CFG_IOLH_A | PIN_CFG_IOLH_B | PIN_CFG_IOLH_C));\n \t\thas_ien = !!(caps & PIN_CFG_IEN);\n", "prefixes": [ "v3" ] }