commit | e341cbe09f77e14064066ecfc2303a24129ac8e1 | [log] [tgz] |
---|---|---|
author | Sriharsha Allenki <sallenki@codeaurora.org> | Wed Nov 22 17:12:11 2017 +0530 |
committer | Sriharsha Allenki <sallenki@codeaurora.org> | Wed Nov 22 17:19:49 2017 +0530 |
tree | 7b3ad65a54900489b5856b815adbe4c2a200ae7b | |
parent | ade6ec4df0edb0bc884c9a8a3ea2c0439eaa1ffd [diff] |
usb: gadget: Fix crash on calling usb gadget activate/deactivate Currently the functions usb_gadget_activate and usb_gadget_deactivate are being called with spinlock held. The above functions calls gadget_pullup which invokes pm_runtime_get_sync call, which might sleep. This results in a crash. Fix this by releasing the spinlock and acquiring it after the function call. Change-Id: I17359e3c3227773a8ce269f8db93bc1d56771044 Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>