Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 97b4129e authored by George Cherian's avatar George Cherian Committed by Felipe Balbi
Browse files

usb: musb: core: Handle Babble condition only in HOST mode



BABBLE and RESET share the same interrupt. The interrupt
is considered to be RESET if MUSB is in peripheral mode and
as a BABBLE if MUSB is in HOST mode.

Handle babble condition iff MUSB is in HOST mode.

Signed-off-by: default avatarGeorge Cherian <george.cherian@ti.com>
Tested-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 025b431b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -849,7 +849,7 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
	}

	/* handle babble condition */
	if (int_usb & MUSB_INTR_BABBLE)
	if (int_usb & MUSB_INTR_BABBLE && is_host_active(musb))
		schedule_work(&musb->recover_work);

#if 0