Skip to content

Commit

Permalink
usb: musb: ignore spurious SESSREQ interrupts
Browse files Browse the repository at this point in the history
This will ignore any SESSREQ interrupt if musb is B state.
Charger detection may cause spurious SESSREQ interrupts.

Signed-off-by: Heikki Krogerus <ext-heikki.krogerus@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Heikki Krogerus authored and Greg Kroah-Hartman committed Oct 22, 2010
1 parent 4346786 commit a6038ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/usb/musb/musb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,11 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
if (int_usb & MUSB_INTR_SESSREQ) {
void __iomem *mbase = musb->mregs;

if (devctl & MUSB_DEVCTL_BDEVICE) {
DBG(3, "SessReq while on B state\n");
return IRQ_HANDLED;
}

DBG(1, "SESSION_REQUEST (%s)\n", otg_state_string(musb));

/* IRQ arrives from ID pin sense or (later, if VBUS power
Expand Down

0 comments on commit a6038ee

Please sign in to comment.