[PATCH 2/12] musb_hdrc: Add more sysfs notify events

Tony Lindgren
2007-10-11T17:05:15Z

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>

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 3093bda..f7dc22c 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -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);
}

--
1.5.2.5