usb: xhci-mtk: enable wake-up interrupt after runtime_suspend called
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Mon, 25 Oct 2021 07:01:54 +0000 (15:01 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Oct 2021 18:49:32 +0000 (20:49 +0200)
Use new function dev_pm_set_dedicated_wake_irq_reverse() to request
dedicated wake-up interrupt, due to we want to enable the wake IRQ
after running ->runtime_suspend().

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/usb/host/xhci-mtk.c

index c53f6f276d5c614461fb0422e3ab9f86fd0bb8e5..58a0eae4f41bead6cac2caa6b04874ad8540ca0f 100644 (file)
@@ -602,7 +602,7 @@ static int xhci_mtk_probe(struct platform_device *pdev)
                goto dealloc_usb2_hcd;
 
        if (wakeup_irq > 0) {
-               ret = dev_pm_set_dedicated_wake_irq(dev, wakeup_irq);
+               ret = dev_pm_set_dedicated_wake_irq_reverse(dev, wakeup_irq);
                if (ret) {
                        dev_err(dev, "set wakeup irq %d failed\n", wakeup_irq);
                        goto dealloc_usb3_hcd;