Commit 7ddae8c7 authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Rafael J. Wysocki

usb: mtu3: enable wake-up interrupt after runtime_suspend called

Use the new API 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: default avatarChunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 0537282d
...@@ -337,7 +337,7 @@ static int mtu3_probe(struct platform_device *pdev) ...@@ -337,7 +337,7 @@ static int mtu3_probe(struct platform_device *pdev)
goto comm_init_err; goto comm_init_err;
if (ssusb->wakeup_irq > 0) { if (ssusb->wakeup_irq > 0) {
ret = dev_pm_set_dedicated_wake_irq(dev, ssusb->wakeup_irq); ret = dev_pm_set_dedicated_wake_irq_reverse(dev, ssusb->wakeup_irq);
if (ret) { if (ret) {
dev_err(dev, "failed to set wakeup irq %d\n", ssusb->wakeup_irq); dev_err(dev, "failed to set wakeup irq %d\n", ssusb->wakeup_irq);
goto comm_exit; goto comm_exit;
......
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