Re: [PATCH 1/1] pinctrl: pinctrl-generic-mux: use mux_state_try_select()

Linus Walleij <[email protected]>
Newsgroups dev.linux.lists.imx,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Message-ID <CAD++jLmZMNAt9pvohvuR-hMUaX+8WS2_Mg2P1c_Jz40TjbcnSQ@mail.gmail.com>
On Wed, Jul 15, 2026 at 9:36 PM <[email protected]> wrote:

> Use mux_state_try_select() instead of mux_state_select() so that the
> consumer driver does not block during probe when the mux state has
> already been selected.
>
> mux_state_try_select() returns -EBUSY if the requested state is already
> selected, allowing the driver to handle the condition without waiting.
>
> Signed-off-by: Frank Li <[email protected]>
> ---
> Previous earily version pinctrl-generic-mux manage this resouce to avoid
> call mux_state_select(). But review or respin patch, remove these check.
> anyways mux_state_try_select() better method.

OK makes sense, patch applied!

Yours,
Linus Walleij
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.