Commit cb7eac8d authored by Tony Lindgren's avatar Tony Lindgren

musb_hdrc: Allow BABBLE for non-HS host

Looks like we can ignore LS and FS BABBLE. Only HS BABBLE
cannot be ignored.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 5b5fd34c
......@@ -538,13 +538,18 @@ static irqreturn_t musb_stage0_irq(struct musb * pThis, u8 bIntrUSB,
if (bIntrUSB & MGC_M_INTR_RESET) {
if (devctl & MGC_M_DEVCTL_HM) {
/*
* BABBLE is an error condition, so the solution is
* to avoid babble in the first place and fix whatever
* causes BABBLE. When BABBLE happens we can only stop
* Looks like non-HS BABBLE can be ignored, but
* HS BABBLE is an error condition. For HS the solution
* is to avoid babble in the first place and fix whatever
* causes BABBLE. When HS BABBLE happens we can only stop
* the session.
*/
ERR("Stopping host session because of babble\n");
musb_writeb(pBase, MGC_O_HDRC_DEVCTL, 0);
if (devctl & (MGC_M_DEVCTL_FSDEV | MGC_M_DEVCTL_LSDEV))
DBG(1, "BABBLE devctl: %02x\n", devctl);
else {
ERR("Stopping host session because of babble\n");
musb_writeb(pBase, MGC_O_HDRC_DEVCTL, 0);
}
} else {
DBG(1, "BUS RESET\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment