Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-08-14 Thread Linus Walleij
On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin wrote: > gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, > ioh_gpio_get and ioh_gpio_direction_input functions. > Thus those functions are not callable from interrupt context. > This patch converts mutex into spinlock. > >

Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-08-14 Thread Linus Walleij
On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin axel@gmail.com wrote: gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, ioh_gpio_get and ioh_gpio_direction_input functions. Thus those functions are not callable from interrupt context. This patch converts mutex into

Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-08-13 Thread Feng Tang
On Mon, 13 Aug 2012 14:01:31 +0200 Linus Walleij wrote: > On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin wrote: > > > gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, > > ioh_gpio_get and ioh_gpio_direction_input functions. > > Thus those functions are not callable from

Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-08-13 Thread Linus Walleij
On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin wrote: > gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, > ioh_gpio_get and ioh_gpio_direction_input functions. > Thus those functions are not callable from interrupt context. > This patch converts mutex into spinlock. > >

Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-08-13 Thread Linus Walleij
On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin axel@gmail.com wrote: gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, ioh_gpio_get and ioh_gpio_direction_input functions. Thus those functions are not callable from interrupt context. This patch converts mutex into

Re: [PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-08-13 Thread Feng Tang
On Mon, 13 Aug 2012 14:01:31 +0200 Linus Walleij linus.wall...@linaro.org wrote: On Sun, Jul 29, 2012 at 4:54 AM, Axel Lin axel@gmail.com wrote: gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, ioh_gpio_get and ioh_gpio_direction_input functions. Thus those

[PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-07-28 Thread Axel Lin
gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, ioh_gpio_get and ioh_gpio_direction_input functions. Thus those functions are not callable from interrupt context. This patch converts mutex into spinlock. Signed-off-by: Axel Lin --- drivers/gpio/gpio-ml-ioh.c | 20

[PATCH RFT 1/2] gpio: gpio-ml-ioh: Use spinlock for register access protection

2012-07-28 Thread Axel Lin
gpio_chip.can_sleep is 0, but current code uses mutex in ioh_gpio_set, ioh_gpio_get and ioh_gpio_direction_input functions. Thus those functions are not callable from interrupt context. This patch converts mutex into spinlock. Signed-off-by: Axel Lin axel@gmail.com ---