Commit f7efccb5 authored by David Brownell's avatar David Brownell Committed by Tony Lindgren

MUSB: Enable the TUSB irq signal as a wake event source

Enable the TUSB irq signal as a wake event source.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
parent 88d7747b
......@@ -1525,8 +1525,10 @@ static void musb_free(struct musb *musb)
musb_gadget_cleanup(musb);
#endif
if (musb->nIrq >= 0)
if (musb->nIrq >= 0) {
disable_irq_wake(musb->nIrq);
free_irq(musb->nIrq, musb);
}
if (is_dma_capable() && musb->pDmaController) {
struct dma_controller *c = musb->pDmaController;
......@@ -1648,6 +1650,7 @@ musb_init_controller(struct device *dev, int nIrq, void __iomem *ctrl)
status = -ENODEV;
goto fail2;
}
(void) enable_irq_wake(nIrq);
pThis->nIrq = nIrq;
device_init_wakeup(dev, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment