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/usb/musb-new | |
parent | 2582ca0d8069eaccc4751ec9a8733c234f1d35ff (diff) | |
download | u-boot-1feda63ed988b2c21f758d27e9332f4ab46b1ce9.tar.gz |
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/usb/musb-new')
-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 85ac28dfd9..16a264a9dd 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; |