]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Add more sysfs notify events
authorTony Lindgren <tony@atomide.com>
Wed, 19 Sep 2007 19:30:00 +0000 (12:30 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 11 Oct 2007 21:31:33 +0000 (14:31 -0700)
Notify on all musb_stage0_irq events. For musb_stage2_irq events,
add notify on suspend. Do not notify on SOF.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_core.c

index 3093bda542603b861b3ff912498836863b3dd292..f7dc22cfa2240cd7911acfede47551cbef334352 100644 (file)
@@ -652,11 +652,11 @@ static irqreturn_t musb_stage0_irq(struct musb * musb, u8 int_usb,
                                DBG(1, "Unhandled BUS RESET as %s\n",
                                        otg_state_string(musb));
                        }
-                       schedule_work(&musb->irq_work);
                }
 
                handled = IRQ_HANDLED;
        }
+       schedule_work(&musb->irq_work);
 
        return handled;
 }
@@ -811,6 +811,7 @@ static irqreturn_t musb_stage2_irq(struct musb * musb, u8 int_usb,
                        musb->is_active = 0;
                        break;
                }
+               schedule_work(&musb->irq_work);
        }