usb: phy: twl4030-usb: Use mutex instead of spinlock for protecting the data
authorTony Lindgren <tony@atomide.com>
Wed, 27 Aug 2014 23:28:11 +0000 (16:28 -0700)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 24 Sep 2014 09:48:33 +0000 (15:18 +0530)
commitdcc35b2160f32b8528973e91c25595fc91354e92
tree2778b74b5d7b00c0d3dadd80765491e61408e888
parent48f48e172c45e66e5323813fccc7dfd34e404bbe
usb: phy: twl4030-usb: Use mutex instead of spinlock for protecting the data

We're using threaded irq on a I2C bus and we're sleeping in
twl4030_usb_irq() as it calls twl4030_usb_linkstat() which
calls the i2c functions. If we ever need to lock for longer
I2C transaction sequences a mutex will allow us to do that
easily.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-twl4030-usb.c