pinctrl: intel: Actually disable Tx and Rx buffers on GPIO request
Subsystems (3)
PATCH v2 1/1 pinctrl: intel: Actually disable Tx and Rx buffers on GPIO request
Mistakenly the buffers (input and output) become enabled together for a short period of time during GPIO request. This is problematic, because instead of initial motive to disable them in the commit af7e3eeb84e2 ("pinctrl: intel: Disable input and output buffer when switching to GPIO"), the driven value on the pin, which might be used as an IRQ line, brings firmwares of some touch pads to an awkward state that needs a full power off to recover. Fix this, as stated in the culprit commit, by disabling the buffers.
Fixes af7e3eeb84e2 ("pinctrl: intel: Disable input and output buffer when switching to GPIO")
Reported-by Pierre-Louis Bossart <[email protected]>
Signed-off-by Andy Shevchenko <[email protected]>
Acked-by Mika Westerberg <[email protected]>
Tested-by Pierre-Louis Bossart <[email protected]>
Tested-by Kai-Heng Feng <[email protected]>
---
v2: added tags, cosmetic fixes in the commit message
drivers/pinctrl/intel/pinctrl-intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/intel/pinctrl-intel.c +2 -2
@@ -452,8 +452,8 @@ static void intel_gpio_set_gpio_mode(void __iomem *padcfg0) value |=PADCFG0_PMODE_GPIO ;/* Disable input and output buffers */ - value &= ~PADCFG0_GPIORXDIS ; - value &= ~PADCFG0_GPIOTXDIS ; + value |=PADCFG0_GPIORXDIS ; + value |=PADCFG0_GPIOTXDIS ;/* Disable SCI/SMI/NMI generation */ value &= ~(PADCFG0_GPIROUTIOXAPIC |PADCFG0_GPIROUTSCI );
Signature · 1 line
2.29.2
Quoted 2 lines · Andy Shevchenko
Fixes af7e3eeb84e2 ("pinctrl: intel: Disable input and output buffer when switching to GPIO")
b4 strips this BugLink still! (I added it back manually.)
I'll try to report it.
Yours,
Linus Walleij