diff mbox series

[v4,2/3] usb: xhci-mtk: enable wake-up interrupt after runtime_suspend called

Message ID 20211025070155.2995-2-chunfeng.yun@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [v4,1/3] PM / wakeirq: support enabling wake-up irq after runtime_suspend called | expand

Commit Message

Chunfeng Yun (云春峰) Oct. 25, 2021, 7:01 a.m. UTC
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>
---
v4: use the new api dev_pm_set_dedicated_wake_irq_reverse()

v3: new patch
---
 drivers/usb/host/xhci-mtk.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c
index c53f6f276d5c..58a0eae4f41b 100644
--- a/drivers/usb/host/xhci-mtk.c
+++ b/drivers/usb/host/xhci-mtk.c
@@ -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;