diff options
author | John Stultz <john.stultz@linaro.org> | 2011-07-20 17:09:34 -0700 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-08-12 11:52:42 +0300 |
commit | 93e098a8fc02c579875e64001f7a511b7e75a16c (patch) | |
tree | c713fdba9768c87a6d253d838235dab11c0a30de /Documentation/pps | |
parent | 15154962f777e4ab38adb7641ccae92194c9a96b (diff) | |
download | blackbird-op-linux-93e098a8fc02c579875e64001f7a511b7e75a16c.tar.gz blackbird-op-linux-93e098a8fc02c579875e64001f7a511b7e75a16c.zip |
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.
[ balbi@ti.com : simplified commit log; removed few things
which didn't belong there ]
Cc: stable@kernel.org
Reported-by: Zach Pfeffer <zach.pfeffer@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'Documentation/pps')
0 files changed, 0 insertions, 0 deletions