From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796405195; b=r9ub+mh9eXCl1ttlskCtKMj7xzZ1bTY10UVlXjMf/V7HDUPNh3buTDXTP3SfTV+y5DqQ MkIF3k1KciJT2larMl7iUQE3k+j5KZgGb30fMDdYQWmoZle/Q6May4Ba2Qm38ZNw1WT33 G//FNVaFUYwyeJEpvqujsnJ6FYEsas6YCn4YHLKgyvm1VS3t3lGlvEM36VQd6vQDE6RN3 cknLUfL8ZdXW4ibDPHyGnfH8mtML5DNt+eGJBNwq4B/mWy6lXy4v/SJDXQKTT8T+IWnb6 o4xCs+OMj5b81fVDcjayLPdUOhLJFdEMJ+cgDBlUAYLneT1hT+oU6vSp+YLDD5z+FCQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796405195; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=HzdRxiiWhhwuZqac9vRSWzdFiAfXZFGW7DVa5ZDCMBc=; b=Uh0lC+qB5i8pwRHKd8DKHYTcv/6hoS53xS+/Q28LTsJ4zMcxcNwxyJSOh+cQuQBQHYWz QtJZMvocqNYVY7bLOvlzhVql82syVPv73pohnpBs2kwiJxM/vLR4bs2Hfr15ix4EKt1iG T8XBbxceymc4rizwOQu+BdN2f/rnmHVSyZ7wo2tLVGj7dYTMqWByciPzfnjVvKoagIcep 3HkqpXYhngCxDeu8LmJCsa6pwxndzhJ6NzbB3nXiuPeZemy2VQqsUGTIgfrWROJlm+yE7 Qku1IIU9Z5fdPXAwSQF54YWoyVELZReOBzncoWe9hWkaqh9dVyQ0s4ILf0S62kL0aiw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jzEyO7BP; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62F73606A68B; Fri, 4 Dec 2026 17:26:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jzEyO7BP Received: by smtp.kernel.org (Postfix) with ESMTPSA id B6A791F0093B; Fri, 4 Dec 2026 17:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796405195; bh=HzdRxiiWhhwuZqac9vRSWzdFiAfXZFGW7DVa5ZDCMBc=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=jzEyO7BPIrJGYnd0DB89DF+DrGa5sbd1PMbC8Ue3I9IJzybOFqaXe+wGCpyK8aIGc arQpBbtHAt4na1hnk4P5+ISmsD+8CqTqfLXHXZg6nxHpbEkNiTRJrmuPRNHR+AhOx6 zF5EGyerLZlpqIfpNXYnqwIJVTkijiLioeJanguWGz4yYPtKt+Gg81RvS0fEVTGKyP DjHNbMlx09JakplcIS/QHx8dNFtOHqIzOocdz5cpNVPYuYhungva3I61tfcH624Qpb 4HCPZ8H3+Pc7uXsTD6rdqwzr/AsXzU5RdW1ZI/euvH3SyZQEXe+xISdZTfGMm+MkM1 YXhTLaZtrHHZA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi Reply-To: sashiko-reviews@lists.linux.dev To: "Chen-Yu Tsai" Cc: linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204171319.745792-6-wens@kernel.org> References: <20261204171319.745792-1-wens@kernel.org> <20261204171319.745792-6-wens@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 17:26:34 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] arm64: dts: allwinner: LED pinctrl conflicts with strict r_pio pinmux mode -- commit e782921751eec9fe8545aae8ed5aadf0e48f0137 Author: Chen-Yu Tsai arm64: dts: allwinner: h6: orangepi: Move LED pinctrl to common dtsi This commit moves the per-LED pinctrl states and r_pio pin nodes for the power and status LEDs from sun50i-h6-orangepi-3-lts.dts into the shared sun50i-h6-orangepi.dtsi. > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch= /arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi > index f1ce38fb3e044..fbf881ccaadc0 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi > @@ -46,12 +46,16 @@ leds { > =20 > led-0 { > label =3D "orangepi:red:power"; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&led_red_pin>; > gpios =3D <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */ > default-state =3D "on"; > }; > =20 > led-1 { > label =3D "orangepi:green:status"; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&led_green_pin>; > gpios =3D <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */ > }; > }; > @@ -244,6 +248,18 @@ &r_ir { > =20 > &r_pio { > vcc-pm-supply =3D <®_bldo3>; > + > + led_green_pin: led-green-pin { > + pins =3D "PL7"; > + function =3D "gpio_out"; > + drive-strength =3D <10>; > + }; > + > + led_red_pin: led-red-pin { > + pins =3D "PL4"; > + function =3D "gpio_out"; > + drive-strength =3D <10>; > + }; > }; > =20 > &rtc { [Severity: Medium] Does combining gpios with per-LED pinctrl-0 (function =3D "gpio_out") on PL4 and PL7 conflict with r_pio's strict pinmux mode? Allwinner H6 r_pio leaves disable_strict_mode unset, so sunxi_pmx_ops runs with strict =3D true and no function_is_gpio callback, while sunxi_pctrl_dt_node_to_map() always emits a mux setting for each pinctrl node. During gpio_led_probe(), gpio_leds_create() requests PL4 and PL7 as GPIOs via devm_fwnode_gpiod_get(), setting desc->gpio_owner. create_gpio_led() then calls devm_pinctrl_get_select_default() -> pinmux_enable_setting() -> pin_request() on the same pins. On Linux 6.5 through 6.17 (including 6.6 and 6.12 LTS), before commit 11aa02d6a9c2 ("pinctrl: allow to mark pin functions as requestable GPIOs"), pin_request() rejects this with -EINVAL and aborts gpio_led_probe(), leaving both LEDs broken on One Plus, Lite 2, and 3. On current mainline, probe only succeeds because that commit sets gpio_ok =3D true when desc->mux_setting is NULL, accidentally bypassing strict-mode rejection during pinmux_enable_setting(). If that bypass is fixed or pinctrl is applied before GPIO acquisition, gpio_led_probe() will fail with -EINVAL on all four boards unless pinctrl-sunxi.c implements pinmux_ops.function_is_gpio for gpio_in and gpio_out. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204171319.7457= 92-1-wens@kernel.org?part=3D5