Re: [PATCH POWERDEBUG] gpio: expose free gpios to user

2014-06-02 Thread Sanjay Singh Rawat
On Monday 02 June 2014 02:52 PM, Mohammad Merajul Islam Molla wrote: Hello Sanjay, One point - should powerdebug unexport these free gpios when it exits? Otherwise, all the entries will remain in /sys/class/gpio/* and /sys/kernel/debug/gpio file until next reboot which user may not want. I wa

Re: [PATCH POWERDEBUG] gpio: expose free gpios to user

2014-06-02 Thread Mohammad Merajul Islam Molla
Hello Sanjay, One point - should powerdebug unexport these free gpios when it exits? Otherwise, all the entries will remain in /sys/class/gpio/* and /sys/kernel/debug/gpio file until next reboot which user may not want. -- Thanks, - Meraj On Mon, Jun 2, 2014 at 2:46 PM, Sanjay Singh Rawat wro

[PATCH POWERDEBUG] gpio: expose free gpios to user

2014-06-02 Thread Sanjay Singh Rawat
- GPIOs in the SoC will be free/used state, this patch make free gpios accessible to the user by exporting them. - bug 1229658 Signed-off-by: Sanjay Singh Rawat --- gpio.c | 27 +++ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/gpio.c b/gpio.c index 4a