Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- commit 5c3dc2bbd17016c226e8deb7468f7b3128cc8156
- Author: Maxime Ripard <maxime.ripard@free-electrons.com>
- Date: Wed Jun 24 11:03:10 2015 +0200
- 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>
- diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c
- index 052e0657d03d..4effaaa3f6ea 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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement