diff options
author | John Stultz <[email protected]> | 2011-07-20 17:09:34 -0700 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2011-08-01 22:06:50 +0300 |
commit | 72c487dfb94d02025fb7437dfe2314d836d5a9ab (patch) | |
tree | 047bb96aa1eb097f8ad14b15608efac18c3b2232 /lib/string_helpers.c | |
parent | d4aefec5daf51ebda90ebf0989598c206cf8e640 (diff) |
usb: musb: fix oops on musb_gadget_pullup
an 'unhandled fault' is causes when a gadget driver calls
usb_gadget_connect() while the USB cable isn't plugged into
the OTG port.
the fault is caused by an access to MUSB's memory space
while its clock is turned off due to pm_runtime kicking
in.
in order to fix the fault, we enclose musb_gadget_pullup()
with pm_runtime_get_sync() ... pm_runtime_put() calls to
be sure we will always reach that path with clock turned on.
[ [email protected] : simplified commit log; removed few things
which didn't belong there ]
Cc: [email protected]
Reported-by: Zach Pfeffer <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions