Skip to content

Commit 0537282

Browse files
Chunfeng Yunrafaeljw
authored andcommitted
usb: xhci-mtk: enable wake-up interrupt after runtime_suspend called
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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 2597141 commit 0537282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/xhci-mtk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ static int xhci_mtk_probe(struct platform_device *pdev)
602602
goto dealloc_usb2_hcd;
603603

604604
if (wakeup_irq > 0) {
605-
ret = dev_pm_set_dedicated_wake_irq(dev, wakeup_irq);
605+
ret = dev_pm_set_dedicated_wake_irq_reverse(dev, wakeup_irq);
606606
if (ret) {
607607
dev_err(dev, "set wakeup irq %d failed\n", wakeup_irq);
608608
goto dealloc_usb3_hcd;

0 commit comments

Comments
 (0)