diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2010-10-10 13:52:22 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2010-11-05 13:48:09 +0200 |
commit | 120d074c58172cd44887d86c9acc44882818c7e7 (patch) | |
tree | 6b9978058af9e41b78b51af9730157883d2c8d47 /drivers/usb/musb/musb_gadget.c | |
parent | e2c3404523c5366c6cc1099d3237d363254adde0 (diff) |
usb: musb: don't leave PHY enabled on shutdown()
Some actions like musb_platform_exit are only performed on module
removal and not on shutdown, which results in PHY being left enabled
on reboot at least. This is sometimes causing strange failures after
reboot (observed on OMAP3 pandora board), when DEVCTL does not report
VBUS state correctly due to unknown reasons (possibly because of
communication issues between musb IP and PHY). Running
musb_platform_exit before reset seems to resolve that issue.
Move some exit code from musb_remove() to musb_shutdown() so that it
is performed on both module removal and shutdown/reset. Also convert
the host check so that it doesn't need #ifdef.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_gadget.c')
0 files changed, 0 insertions, 0 deletions