commit | 16e569e9661ea2b964b8abb607a51e5285254021 | [log] [tgz] |
---|---|---|
author | Anton Tikhomirov <av.tikhomirov@samsung.com> | Tue Nov 26 11:46:05 2013 +0900 |
committer | Felipe Balbi <balbi@ti.com> | Tue Nov 26 10:58:18 2013 -0600 |
tree | 528220cbbd28bb3ab6e16ea0603d9da38a153490 | |
parent | d49dd788840ff802421ed7412e967b659fe9ca58 [diff] |
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>