Re: [PATCH 2/2] musb: sunxi: Force session end on babble errors in host-mode

2016-09-22 Thread Hans de Goede
Hi, On 09/22/2016 05:33 AM, Bin Liu wrote: Hi, On Sun, Sep 18, 2016 at 06:50:18PM +0200, Hans de Goede wrote: The sunxi musb has a bug where sometimes it will generate a babble error on device disconnect instead of a disconnect irq. When this happens the musb-controller switches from host

Re: [PATCH 2/2] musb: sunxi: Force session end on babble errors in host-mode

2016-09-21 Thread Bin Liu
Hi, On Sun, Sep 18, 2016 at 06:50:18PM +0200, Hans de Goede wrote: > The sunxi musb has a bug where sometimes it will generate a babble > error on device disconnect instead of a disconnect irq. When this > happens the musb-controller switches from host mode to device mode > (it clears

[PATCH 2/2] musb: sunxi: Force session end on babble errors in host-mode

2016-09-18 Thread Hans de Goede
The sunxi musb has a bug where sometimes it will generate a babble error on device disconnect instead of a disconnect irq. When this happens the musb-controller switches from host mode to device mode (it clears MUSB_DEVCTL_SESSION and sets MUSB_DEVCTL_BDEVICE) and gets stuck in this state.