Thread (16 messages) 16 messages, 2 authors, 2015-03-18

[STLinux Kernel] [PATCH 5/6] pinctrl: st: Show correct pin direction -- even when in GPIO mode

From: Maxime Coquelin <hidden>
Date: 2015-03-18 16:45:44
Also in: linux-gpio, lkml


On 03/18/2015 11:51 AM, Lee Jones wrote:
Until now ST's pinconf_dbg_show() call-back has displayed the PIO
alternate function direction, which is only relevant if a pin is
operating in an alternate function mode i.e not GPIO mode.  If a
pin is in GPIO mode its direction is both set and status is
obtained by a completely different/unrelated bunch of registers.

This change ensures that the correct pin direction is shown, even
if a pin is operating in GPIO mode.

Reported-by: Olivier Clergeaud <redacted>
Signed-off-by: Lee Jones <redacted>
---
  drivers/pinctrl/pinctrl-st.c | 8 +++++++-
  1 file changed, 7 insertions(+), 1 deletion(-)

Acked-by: Maxime Coquelin <redacted>

Thanks,
Maxime
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help