]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: musb-new: core: set MUSB_POWER_HSENAB in MUSB_POWER for host mode
authorDaniel Mack <zonque@gmail.com>
Tue, 22 Jul 2014 10:47:02 +0000 (12:47 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 6 Oct 2014 19:04:44 +0000 (21:04 +0200)
This bit allows the MUSB controller to negotiate for high-speed mode when
the device is reset by the hub. If unset, Babble errors occur with
high-speed mass storage devices right after the first packet. This condition
is not caught by the interrupt handles in U-Boot, so no recovery is done,
and the USB communication is stuck.

To fix this, set the bit unconditionally, not only for
CONFIG_USB_GADGET_DUALSPEED but also for host-only modes.

Signed-off-by: Daniel Mack <zonque@gmail.com>
drivers/usb/musb-new/musb_core.c

index 4edd6d729d1d0d26cb5d5867ebbf3e9783f6c045..242cc30b1c2d07e4d81d8213a8352b03450208c3 100644 (file)
@@ -942,9 +942,7 @@ void musb_start(struct musb *musb)
 
        /* put into basic highspeed mode and start session */
        musb_writeb(regs, MUSB_POWER, MUSB_POWER_ISOUPDATE
-#ifdef CONFIG_USB_GADGET_DUALSPEED
                                                | MUSB_POWER_HSENAB
-#endif
                                                /* ENSUSPEND wedges tusb */
                                                /* | MUSB_POWER_ENSUSPEND */
                                                );