GPIO sysfs 'default' values

Tony Prisk linux at prisktech.co.nz
Thu Feb 21 02:11:20 EST 2013


Hi Grant, Linus.

I was testing our new gpio/pinctrl driver today and noticed something a
little weird.

I exported gpio0 via sysfs and echoed the direction value - it was 'in'.
This pin is used to control an LCD panel, and is actually in 'out' mode.
If I write 'in' to direction, it changes mode to 'in' and the panel
turns off. Setting it back to 'out' and value=0, and the panel turns on
again.

I noticed that I had no gpiochip->get_direction, so I added it, but the
result was the same.

Any idea what I've missed?

Regards
Tony Prisk




More information about the linux-arm-kernel mailing list