Re: [PATCH v2] pinctrl: qcom: support gpio_chip .set_config call

From
Linus Walleij <hidden>
Date
2021-03-10 23:04:33
Also in
linux-arm-msm
Reply to
Shawn Guo, 2021-03-03
On Wed, Mar 3, 2021 at 2:19 PM Shawn Guo [off-list ref] wrote:
In case of ACPI boot, GPIO core does the right thing to parse GPIO pin
configs from ACPI table, and call into gpio_chip's .set_config hook for
setting them up.  It enables such support on qcom platform by using
generic config function, which in turn calls into .pin_config_set of
pinconf for setting up hardware.  For qcom platform, it's possible to
reuse pin group config functions for pin config hooks, because every pin
is maintained as a single group.

This change fixes the problem that Touchpad of Lenovo Flex 5G laptop
doesn't work with ACPI boot, because PullUp config of Touchpad GpioInt
pin is not set up by the kernel.

Signed-off-by: Shawn Guo <redacted>
---
Changes for v2:
- Add pin config functions that simply call into group config ones.
Patch applied!

Yours,
Linus Walleij
Thread (14 messages) 14 messages, 4 authors, last reply 2021-03-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help