aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorHeikki Krogerus <ext-heikki.krogerus@nokia.com>2010-09-24 06:44:13 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-10-22 13:21:55 -0400
commita6038ee76a29ea31f8aae4eb6c419794c739e077 (patch)
tree5b546af852401f7ff8f7947799fae02af8a610a9 /drivers/usb/musb
parent434678685407e045ffb246df059c486fc0a16e75 (diff)
usb: musb: ignore spurious SESSREQ interrupts
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>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index d4f18bbc8f8f..472b2a7e7896 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -550,6 +550,11 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
550 if (int_usb & MUSB_INTR_SESSREQ) { 550 if (int_usb & MUSB_INTR_SESSREQ) {
551 void __iomem *mbase = musb->mregs; 551 void __iomem *mbase = musb->mregs;
552 552
553 if (devctl & MUSB_DEVCTL_BDEVICE) {
554 DBG(3, "SessReq while on B state\n");
555 return IRQ_HANDLED;
556 }
557
553 DBG(1, "SESSION_REQUEST (%s)\n", otg_state_string(musb)); 558 DBG(1, "SESSION_REQUEST (%s)\n", otg_state_string(musb));
554 559
555 /* IRQ arrives from ID pin sense or (later, if VBUS power 560 /* IRQ arrives from ID pin sense or (later, if VBUS power