From patchwork Wed Aug 11 03:04:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2h1bmZlbmcgWXVuICjkupHmmKXls7Ap?= X-Patchwork-Id: 495499 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, UNPARSEABLE_RELAY, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF580C4320A for ; Wed, 11 Aug 2021 03:05:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FE6D60ED8 for ; Wed, 11 Aug 2021 03:05:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232885AbhHKDF3 (ORCPT ); Tue, 10 Aug 2021 23:05:29 -0400 Received: from mailgw01.mediatek.com ([60.244.123.138]:33918 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232169AbhHKDF3 (ORCPT ); Tue, 10 Aug 2021 23:05:29 -0400 X-UUID: 5fdea8a68a2c4537a2dfac1576dfd4d7-20210811 X-UUID: 5fdea8a68a2c4537a2dfac1576dfd4d7-20210811 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 833135956; Wed, 11 Aug 2021 11:05:04 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 11 Aug 2021 11:05:02 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 11 Aug 2021 11:05:01 +0800 From: Chunfeng Yun To: "Rafael J. Wysocki" , Greg Kroah-Hartman CC: Pavel Machek , Len Brown , Chunfeng Yun , Mathias Nyman , Matthias Brugger , , , , , , Eddie Hung , Ikjoon Jang Subject: [PATCH v3 2/2] usb: xhci-mtk: enable wake-up interrupt after runtime_suspend called Date: Wed, 11 Aug 2021 11:04:29 +0800 Message-ID: <1628651069-22162-2-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1628651069-22162-1-git-send-email-chunfeng.yun@mediatek.com> References: <1628651069-22162-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Use new function dev_pm_wake_irq_set_late_enabled_status() to enable dedicated wake-up interrupt after xhci_mtk_runtime_suspend() is called. Signed-off-by: Chunfeng Yun --- v3: new patch --- drivers/usb/host/xhci-mtk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 7ff0cd707ba1..6fb6f6853129 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -611,6 +611,7 @@ static int xhci_mtk_probe(struct platform_device *pdev) dev_err(dev, "set wakeup irq %d failed\n", wakeup_irq); goto dealloc_usb3_hcd; } + dev_pm_wake_irq_set_late_enabled_status(dev); dev_info(dev, "wakeup irq %d\n", wakeup_irq); }