From patchwork Wed Aug 25 05:47:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chunfeng Yun X-Patchwork-Id: 12456455 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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY, 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 E0053C4338F for ; Wed, 25 Aug 2021 05:53:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AACCE61357 for ; Wed, 25 Aug 2021 05:53:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AACCE61357 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RKqy13Uatp+hDV/h/mGkidnxsvKJmE0/88eHKwj4yDU=; b=bmNLBHaqyQbDLf OlWrXPCGO1o/fB1hYkkycOH/xq0+IKoBGfjC8IrznCb5YQuTCektCNDe1VThQ1XK1iMAaZ6CiS375 BQJRY1KjKseekzthvCxChdgLoBsK81d4jh1hvmLfJ4raFEAAbFVfvTrQwq8IIXVThN05ZIUXuJcDJ 2KFxADK0YX8POwKYEa/0O3sSOgZUjAH7wVvOOYFA22F4sZP//BTIB3yJ1xCfxObpcfsgO4zSrTGds ex+SRxmUYOgkE4tQpekooQzJPVmJat5Ikoee+FaOEzxHBcaEHVbbJd3xjpe+mrvHDCpWgl5eUoVku Oc0CZuHi3dp/JGiVNqqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIlo9-005YsJ-OP; Wed, 25 Aug 2021 05:50:41 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mIlo2-005Yr3-PF; Wed, 25 Aug 2021 05:50:38 +0000 X-UUID: 8081f977109b43808d8f02cc0f0b1b96-20210824 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=07yNZ7WLw6gCRD7F6CIsZCAX6VEtK74OjBOyd9U0qR8=; b=snQTNiuNdDtniTi0Pi0W6KedfW1DqxyXS7/yVDNh724MLNaG1c0GoheDlVTYdd7OstGpo9mMQzK8fw0l9ahTXgSzIb1ON17nej3gpZ3KZm3Uj4iGYoH15Rvh2H7/RH+4eCH2G0P6JC1k8YZW+0ApgOrIffhENhkXR9JzE5R7Lzk=; X-UUID: 8081f977109b43808d8f02cc0f0b1b96-20210824 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1304575362; Tue, 24 Aug 2021 22:50:33 -0700 Received: from mtkmbs05n1.mediatek.inc (172.21.101.15) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 24 Aug 2021 22:48:05 -0700 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 25 Aug 2021 13:48:03 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 25 Aug 2021 13:48:03 +0800 From: Chunfeng Yun To: "Rafael J. Wysocki" CC: Pavel Machek , Len Brown , "Greg Kroah-Hartman" , Chunfeng Yun , Mathias Nyman , Matthias Brugger , , , , , Subject: [PATCH RESEND v3 2/2] usb: xhci-mtk: enable wake-up interrupt after runtime_suspend called Date: Wed, 25 Aug 2021 13:47:58 +0800 Message-ID: <1629870478-11813-2-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1629870478-11813-1-git-send-email-chunfeng.yun@mediatek.com> References: <1629870478-11813-1-git-send-email-chunfeng.yun@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210824_225034_847280_1B0EF189 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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); }