MUSB: Enable the TUSB irq signal as a wake event source
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 8 Sep 2006 07:52:17 +0000 (10:52 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 8 Sep 2006 07:52:17 +0000 (10:52 +0300)
Enable the TUSB irq signal as a wake event source.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
drivers/usb/musb/plat_uds.c

index 919fd0c..4f85924 100644 (file)
@@ -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);