Tegra gpio driver: Need to configure pins in gpio mode/nontristate with gpio-request

From: ldewangan@nvidia.com (Laxman Dewangan)
Date: 2011-05-05 09:27:58
Also in: linux-tegra

Hi All,
When working on gpio driver for tegra, I found that gpio_request() does not make the corresponding soc pins to gpio mode. It still keeps the pins in SFIO mode.
So we need to call two extra function along with gpio_request():
Tegra_gpio_enable() and function for setting the pins in no non-tristate.

Sue to this, the gpio sysfs interface does not work properly from user space /sys/class/gpio/.
To make the pin in gpio mode fom user space, need to have changes in kernel.

Should be the gpio_request() should make the pins to gpio mode and make ready for use.
Similarly gpio_free() should again put the pin into sfio mode with tristate disable.


Please review the above and provide feedback.

Thanks,
Laxman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20110505/7c7001a4/attachment-0001.html>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help