Re: [PATCH v5 2/6] pinctrl: qcom: Register functions before enabling pinctrl

Linus Walleij <[email protected]>
Newsgroups org.kernel.vger.linux-gpio,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel,org.kernel.vger.phone-devel
Message-ID <CAD++jLmOD87COHe==Ftsww0axHeo2d_8w1x-gVq19a_0cdNQtQ@mail.gmail.com>
On Tue, Aug 4, 2026 at 8:34 AM Alexandre MINETTE via B4 Relay
<[email protected]> wrote:


> From: Alexandre MINETTE <[email protected]>
>
> pinctrl consumers can request states while the pinctrl core enables the
> controller. On Qualcomm pinctrl drivers this can happen before the SoC
> function list has been registered, which leaves the function table
> incomplete during state lookup.
>
> On APQ8064 this can fail while claiming pinctrl hogs:
>
>    apq8064-pinctrl 800000.pinctrl: invalid function ps_hold in map table
>    apq8064-pinctrl 800000.pinctrl: error claiming hogs: -22
>    apq8064-pinctrl 800000.pinctrl: could not claim hogs: -22
>
> Register Qualcomm pinctrl with devm_pinctrl_register_and_init(), add the
> SoC pin functions, and only then enable the pinctrl device.
>
> Reviewed-by: Konrad Dybcio <[email protected]>
> Signed-off-by: Alexandre MINETTE <[email protected]>

This is for Bartosz to apply independently if he hasn't already.

FWIW
Acked-by: Linus Walleij <[email protected]>

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.