diff options
| author | Maxime Ripard <[email protected]> | 2015-08-04 17:04:10 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2015-08-05 17:20:34 +0200 |
| commit | 1feda63ed988b2c21f758d27e9332f4ab46b1ce9 (patch) | |
| tree | 122b006edd116ad6991eb6ad805cff37b382bdc3 | |
| parent | 2582ca0d8069eaccc4751ec9a8733c234f1d35ff (diff) | |
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 <[email protected]>
| -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 85ac28dfd9a..16a264a9dde 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; |
