[PATCH] pinctrl: meson: amlogic-a4: fix gpio output glitch
Linus Walleij
linusw at kernel.org
Mon May 25 01:34:11 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>
Is this a regression? I.e. does it cause problems on a supported
system with mainline?
Linus (the big penguin) is unhappy with too many non-critical fixes
so I wanna check this before this goes into fixes.
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list