[PATCH] pinctrl: meson: amlogic-a4: fix gpio output glitch
Linus Walleij
linusw at kernel.org
Tue May 26 02:54:31 PDT 2026
On Mon, May 18, 2026 at 10:26 AM Xianwei Zhao via B4 Relay
<devnull+xianwei.zhao.amlogic.com at kernel.org> wrote:
> From: Xianwei Zhao <xianwei.zhao at amlogic.com>
>
> When the system transitions from bootloader to kernel, the GPIO is
> expected to keep driving high.
>
> However, the Linux kernel first configures the pin direction and then
> sets the output value. This may cause a brief low-level glitch on the
> GPIO line, which can be problematic for regulator control.
>
> By configuring the output value before switching the pin direction to
> output, the glitch can be avoided.
>
> This commit fixes the issue by swapping the configuration order.
>
> Fixes: 6e9be3abb78c ("pinctrl: Add driver support for Amlogic SoCs")
> Signed-off-by: Xianwei Zhao <xianwei.zhao at amlogic.com>
Patch applied as non-critical fix based on my gut feeling.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list