usb: phy: replace spinlock with mutex in OTG FSM
authorAnton Tikhomirov <av.tikhomirov@samsung.com>
Tue, 26 Nov 2013 02:46:05 +0000 (11:46 +0900)
committerFelipe Balbi <balbi@ti.com>
Tue, 26 Nov 2013 16:58:18 +0000 (10:58 -0600)
commit16e569e9661ea2b964b8abb607a51e5285254021
tree528220cbbd28bb3ab6e16ea0603d9da38a153490
parentd49dd788840ff802421ed7412e967b659fe9ca58
usb: phy: replace spinlock with mutex in OTG FSM

OTG Final State Machine calls functions which may sleep.

For example, start_gadget callback implementation can use
usb_gadget_vbus_connect(), whose context: can sleep.

If so, mutex should be used instead of spinlock.

Signed-off-by: Anton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-fsl-usb.c
drivers/usb/phy/phy-fsm-usb.c
drivers/usb/phy/phy-fsm-usb.h