Re: [PATCH] gpio: pcf857x: get rid of slock spinlock

2015-07-16 Thread Linus Walleij
On Thu, Jun 25, 2015 at 5:18 PM, Grygorii Strashko wrote: > The spinlock 'slock' is used now to protect pcf857x_irq() from itself > which is unnecessary (especially after switching to use threaded > IRQs). Hence, remove it and use mutex to protect device data in IRQ > handler. > > Cc: Geert

Re: [PATCH] gpio: pcf857x: get rid of slock spinlock

2015-07-16 Thread Linus Walleij
On Thu, Jun 25, 2015 at 5:18 PM, Grygorii Strashko grygorii.stras...@ti.com wrote: The spinlock 'slock' is used now to protect pcf857x_irq() from itself which is unnecessary (especially after switching to use threaded IRQs). Hence, remove it and use mutex to protect device data in IRQ

[PATCH] gpio: pcf857x: get rid of slock spinlock

2015-06-25 Thread Grygorii Strashko
The spinlock 'slock' is used now to protect pcf857x_irq() from itself which is unnecessary (especially after switching to use threaded IRQs). Hence, remove it and use mutex to protect device data in IRQ handler. Cc: Geert Uytterhoeven Signed-off-by: Grygorii Strashko ---

[PATCH] gpio: pcf857x: get rid of slock spinlock

2015-06-25 Thread Grygorii Strashko
The spinlock 'slock' is used now to protect pcf857x_irq() from itself which is unnecessary (especially after switching to use threaded IRQs). Hence, remove it and use mutex to protect device data in IRQ handler. Cc: Geert Uytterhoeven geert+rene...@glider.be Signed-off-by: Grygorii Strashko