]> git.ipfire.org Git - people/ms/u-boot.git/commit
usb: musb-new: omap2430: Reset the MUSB controller early
authorPaul Kocialkowski <contact@paulk.fr>
Mon, 19 Jan 2015 17:33:43 +0000 (18:33 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 24 Feb 2015 17:54:03 +0000 (18:54 +0100)
commit193d7d153024214f2906e34f2c8abd495be57696
tree5b19847f293bbbcec4a86c2713a3e0e65e9a483a
parent8f9f7be7af4e3662424da6fa0c3b7d1041c1b1d2
usb: musb-new: omap2430: Reset the MUSB controller early

When booting from USB peripheral boot, the bootrom will not properly deinit the
MUSB controller, which doesn't clearly indicate an USB disconnection to the host
and leaves U-Boot to deal with the state of the previous USB session.

On some host controller drivers (e.g. xhci_hcd), this ends up in a failure
during set address, caused by the lack of proper disconnection notification.

Resetting the controller early in U-Boot notifies the host of the disconnection
and doesn't hurt other use cases.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Reviewed-by: Tom Rini <trini@ti.com>
drivers/usb/musb-new/omap2430.c