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: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Родитель
0537282d3b
Коммит
7ddae8c779
|
@ -337,7 +337,7 @@ static int mtu3_probe(struct platform_device *pdev)
|
|||
goto comm_init_err;
|
||||
|
||||
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) {
|
||||
dev_err(dev, "failed to set wakeup irq %d\n", ssusb->wakeup_irq);
|
||||
goto comm_exit;
|
||||
|
|
Загрузка…
Ссылка в новой задаче