mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
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>
This commit is contained in:
parent
2582ca0d80
commit
1feda63ed9
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue