From nobody Fri Jun 12 11:29:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D499D20297C; Fri, 15 May 2026 12:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778848818; cv=none; b=k0roQZ3PehjD6ykNQYHV1EUhpFNuHNWrufCzXl2V1lkFpdc/UiIYL63Nb/RZnFxZ4ohp2FX+NyqXCbewMnh+So/uo/u6gsHJQTn8630cTFps78HszZxKf4LvutDze6RMjVk9hAk0kJB9QX7UMtpXt1tUTD0QVNtgje6ERNIdgzI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778848818; c=relaxed/simple; bh=TbnO/RNvXnvbRs7wSHwIve64pNueHjc4KTEnYexTAPk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XH6PgRCQ0rQfbqzcbujtiGyltmKaFpUE+E1wFNM7IAcUlN+HDFgMF3SzEgrFhTNWOMvDjgFNZzs0KrVty8svFd7NHDzXMALgleB9nxG+eW3Gdo0eztutbGOmBvmQpkPLlPWvXCUGWkpy00Qm2E+KJ04Q4svwxywEhm3y8FFIXjw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eaKalwPW; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eaKalwPW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9088CC2BCB8; Fri, 15 May 2026 12:40:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778848818; bh=TbnO/RNvXnvbRs7wSHwIve64pNueHjc4KTEnYexTAPk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eaKalwPW/SzDxjidhoDuPapIR63Kf4vyxbRS6FSa25tWMKezHIdbBjU8GBifZbd66 RzPJelzUFXcBZIrWzHud97G/AuflxF0jYkpCJ0662RcIT7RYSO6NVBeOkh+40WGlZu X1jo8FoQbXnk/B2wTFEjio55V5kwVakUV7hF/HARGiNGDQvOYSrBJYKcHnhj2fcPqG f/oMJBxV9aBn/LbCHDpT0p+A7D9BuxHgk0TMYHidWYRVHIhTlJBfgUL7ru4f7UgeS9 9nMrH2jxiB10cCr8nBLDXZRfr1yK9aYBXjjyAwM+SLrKGhRpEgMP9WwSbw3NESpvP+ YKcGZ0gsjDtFQ== From: Claudiu Beznea To: geert+renesas@glider.be, linusw@kernel.org, brgl@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: claudiu.beznea@kernel.org, claudiu.beznea@tuxon.dev, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea , stable@vger.kernel.org Subject: [PATCH v2 1/2] pinctrl: renesas: rzg2l: Use -ENOTSUPP instead of -EOPNOTSUPP Date: Fri, 15 May 2026 15:40:07 +0300 Message-ID: <20260515124008.2947838-2-claudiu.beznea@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260515124008.2947838-1-claudiu.beznea@kernel.org> References: <20260515124008.2947838-1-claudiu.beznea@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Claudiu Beznea The pinctrl and GPIO core code make exceptions for the -ENOTSUPP error code. One such example is gpio_set_config_with_argument_optional(), which returns success when gpio_set_config_with_argument() returns -ENOTSUPP, but reports failure for all other error codes. Returning -EOPNOTSUPP from the pinctrl driver on the unsupported pinctrl operation may lead to boot failures when pinctrl drivers implements struct gpio_chip::set_config, the system uses GPIO hogs, and the struct gpio_chip::set_config implementation returns -EOPNOTSUPP for the unsupported operations. Return -ENOTSUPP for the unsupported pinctrl operation. Fixes: 560c633d378a ("pinctrl: renesas: rzg2l: Drop oen_read and oen_write = callbacks") Fixes: c4c4637eb57f ("pinctrl: renesas: Add RZ/G2L pin and gpio controller = driver") Cc: stable@vger.kernel.org Signed-off-by: Claudiu Beznea Reviewed-by: Bartosz Golaszewski Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- Changes in v2: - none, this patch is new drivers/pinctrl/renesas/pinctrl-rzg2l.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/rene= sas/pinctrl-rzg2l.c index a106e087c224..05a33655e6cc 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -1281,7 +1281,7 @@ static int rzg2l_read_oen(struct rzg2l_pinctrl *pctrl= , unsigned int _pin) int bit; =20 if (!pctrl->data->pin_to_oen_bit) - return -EOPNOTSUPP; + return -ENOTSUPP; =20 bit =3D pctrl->data->pin_to_oen_bit(pctrl, _pin); if (bit < 0) @@ -1323,7 +1323,7 @@ static int rzg2l_write_oen(struct rzg2l_pinctrl *pctr= l, unsigned int _pin, u8 oe u8 val; =20 if (!pctrl->data->pin_to_oen_bit) - return -EOPNOTSUPP; + return -ENOTSUPP; =20 bit =3D pctrl->data->pin_to_oen_bit(pctrl, _pin); if (bit < 0) @@ -1754,7 +1754,7 @@ static int rzg2l_pinctrl_pinconf_set(struct pinctrl_d= ev *pctldev, break; =20 default: - return -EOPNOTSUPP; + return -ENOTSUPP; } } =20 @@ -1837,7 +1837,7 @@ static int rzg2l_pinctrl_pinconf_group_get(struct pin= ctrl_dev *pctldev, =20 /* Check config matching between to pin */ if (i && prev_config !=3D *config) - return -EOPNOTSUPP; + return -ENOTSUPP; =20 prev_config =3D *config; } --=20 2.43.0 From nobody Fri Jun 12 11:29:38 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB6A947F2CF; Fri, 15 May 2026 12:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778848821; cv=none; b=Cc8arrUfFGzX/mQYnxuU2nD+OuzVZY+hiIGnfCcV03pCyd5QedMLM7csuRreXF/ydguSCaOSZXMuFfmImqqQzTkqHyC3036QKWi/iOp6VStWFVot7ExQRdpg6SQpdke08OaE8i19ZPbcQz4V/eoeXy8hfPuILut/WkGjqtZBAUw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778848821; c=relaxed/simple; bh=Dd5fe5jSF1ogGY+jB2o6PqmeuZ49kG++yFhYxR6YgkA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oQ01obj66Tf3e9qRbGn26mPmEueYVRZP4B+sm6UWBxESzIyAMj+rIPqPFXT3yS71wtdU+Mypl8BUGIyL+sXehSZsg+21P1JPk9/zI7hTOLeUfJQUA8LCiOyTjA55Mul29lAbpr2ackbITlI4F4jD/wDU5HVQExvlkDk6PU0d1s4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EaUF/Vox; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EaUF/Vox" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE919C2BCB7; Fri, 15 May 2026 12:40:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778848821; bh=Dd5fe5jSF1ogGY+jB2o6PqmeuZ49kG++yFhYxR6YgkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EaUF/Vox8irY4VHbikvFQFcoITs3VrEtCYSPbws9Yzv02VtgG4gZwX7Rlj0UeYNnL aAyxrg7Z96STx2vow9PGjCnSbNGTh8O17uQUDpDDPK6/18FyYVcFeXqQgkqUvdVWCx aYM51sxa16u/cn9Zn8T7EYsXbCyPCod77ZkBT240oJhJk8XHziVDBiBk1EQZCmyRol CHF4yZg5CnBKlKuEB4Jmy99qyIXzUG6Kf1vQybskBIZwFvpiKCT1nfj2t7r5HnIIPX zKHmSAKG1twV2dSYam5Y5P8qWVLgSnvNsIf3oeF4ny1GnNMavA2XtbidtZ94uhO6xI VnUhbNVx5szlw== From: Claudiu Beznea To: geert+renesas@glider.be, linusw@kernel.org, brgl@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: claudiu.beznea@kernel.org, claudiu.beznea@tuxon.dev, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Claudiu Beznea Subject: [PATCH v2 2/2] pinctrl: renesas: rzg2l: Populate struct gpio_chip::set_config Date: Fri, 15 May 2026 15:40:08 +0300 Message-ID: <20260515124008.2947838-3-claudiu.beznea@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260515124008.2947838-1-claudiu.beznea@kernel.org> References: <20260515124008.2947838-1-claudiu.beznea@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Claudiu Beznea Populate struct gpio_chip::set_config to allow various GPIO settings. Signed-off-by: Claudiu Beznea Reviewed-by: Bartosz Golaszewski Reviewed-by: Geert Uytterhoeven Tested-by: Geert Uytterhoeven --- Changes in v2: - used gpiochip_generic_config() drivers/pinctrl/renesas/pinctrl-rzg2l.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/renesas/pinctrl-rzg2l.c b/drivers/pinctrl/rene= sas/pinctrl-rzg2l.c index 05a33655e6cc..ac42093fc579 100644 --- a/drivers/pinctrl/renesas/pinctrl-rzg2l.c +++ b/drivers/pinctrl/renesas/pinctrl-rzg2l.c @@ -3212,6 +3212,7 @@ static int rzg2l_gpio_register(struct rzg2l_pinctrl *= pctrl) chip->direction_output =3D rzg2l_gpio_direction_output; chip->get =3D rzg2l_gpio_get; chip->set =3D rzg2l_gpio_set; + chip->set_config =3D gpiochip_generic_config; chip->label =3D name; chip->parent =3D pctrl->dev; chip->owner =3D THIS_MODULE; --=20 2.43.0