diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2015-08-04 17:04:10 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-08-05 17:20:34 +0200 |
commit | 1feda63ed988b2c21f758d27e9332f4ab46b1ce9 (patch) | |
tree | 122b006edd116ad6991eb6ad805cff37b382bdc3 /drivers | |
parent | 2582ca0d8069eaccc4751ec9a8733c234f1d35ff (diff) | |
download | u-boot-imx-1feda63ed988b2c21f758d27e9332f4ab46b1ce9.zip u-boot-imx-1feda63ed988b2c21f758d27e9332f4ab46b1ce9.tar.gz u-boot-imx-1feda63ed988b2c21f758d27e9332f4ab46b1ce9.tar.bz2 |
musb: sunxi: Force EP0 on re-enable
Currently, the second use of a gadget will fail, while the first one works.
Forcing the EP0 at every enable fix this issue.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/musb-new/sunxi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 85ac28d..16a264a 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -200,6 +200,9 @@ static int sunxi_musb_enable(struct musb *musb) pr_debug("%s():\n", __func__); + musb_ep_select(musb->mregs, 0); + musb_writeb(musb->mregs, MUSB_FADDR, 0); + if (enabled) return 0; |