From: Maxime Ripard <maxime.rip...@free-electrons.com> 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.rip...@free-electrons.com> --- drivers/usb/musb-new/sunxi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 052e065..4effaaa 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -203,6 +203,9 @@ static void 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; -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot