Re: [PATCH] gpio: twl4030: Correct status reporting when the GPIO is used as output

2012-12-06 Thread Peter Ujfalusi
On 12/05/2012 11:48 PM, Grant Likely wrote: -base = REG_GPIODATAIN1 + d_bnk; +direction = gpio_twl4030_read(REG_GPIODATADIR1 + d_bnk); +if (direction 0 (direction d_off) 0x1) +base = REG_SETGPIODATAOUT1 + d_bnk; +else +base = REG_GPIODATAIN1 +

[PATCH] gpio: twl4030: Correct status reporting when the GPIO is used as output

2012-12-05 Thread Peter Ujfalusi
When the GPIO is configured as output we need to read the GPIODATAOUT* register to get correct information. When the GPIO is output the GPIODATAIN* registers report 0 all the time (no feedback from output path). Signed-off-by: Peter Ujfalusi peter.ujfal...@ti.com --- drivers/gpio/gpio-twl4030.c

Re: [PATCH] gpio: twl4030: Correct status reporting when the GPIO is used as output

2012-12-05 Thread Grant Likely
On Wed, 5 Dec 2012 10:49:45 +0100, Peter Ujfalusi peter.ujfal...@ti.com wrote: When the GPIO is configured as output we need to read the GPIODATAOUT* register to get correct information. When the GPIO is output the GPIODATAIN* registers report 0 all the time (no feedback from output path).