From mboxrd@z Thu Jan 1 00:00:00 1970 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=-15.2 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, URIBL_BLOCKED,USER_AGENT_SANE_2 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 8BC63C433ED for ; Thu, 8 Apr 2021 09:53:21 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 25DA3610FA for ; Thu, 8 Apr 2021 09:53:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 25DA3610FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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:Date:CC:To:From: Subject:Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=d5n8wKLSKXRpQ4IKCNOe1ADrqCcJS0zl92a2sqViHbg=; b=dz9Mo+i9dN4Ss/pas8V4NhE7f zy1waaQ5lMvYk5/zrcYtdKlpMOX7RQtV1MlE7Ppw8sFIml6WsuucQ4oAjQXAOUSIkVHbV3EQ93WYE h1fsl7YK8x7ZGJ/ajQlF8ggCi5sI7vCFm8Uz4OHikgDTfQk4nH7uAcgwoa9UcYX6DidYrwLxQtSYT C2e3LtTZhDpo/oB4SO7ZJvGbhnLhnqhAMsyICATpj8VBmfItudOJKRmDQw2f/gQF3Vcr0U5q4vNX5 d/GkDt+uh8BhbjaIj64Ta/uZt+3GGAoq76ululFnEr2+8W7niZA25seNzkAxgLbDN7A6+ndML6KeG eh77dE29Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lURKI-007YOt-P0; Thu, 08 Apr 2021 09:51:51 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lURKD-007YNW-7H; Thu, 08 Apr 2021 09:51:47 +0000 X-UUID: e485a98e5700462aa2f4f34b5c71a7fa-20210408 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=DhXrt3L4CKxUl57HEQInxirgPEfKt48YlqcSx9oo5a8=; b=TJ+F2AYKnA5LLMYOPdLnxUWZCyLB3ldaQBgRk5P3ZoFyJtj3AyLFiEDIOcqeGWass7SOpGYpBZUi+EqKQMn0RaC2dOi6a/O4l3nVkW26oWNy6dBblRLhyR5dQvemm50KNv0qJP5HhTt/tgg97LYqh1cj8aQ9N201RgCuuZtChG8=; X-UUID: e485a98e5700462aa2f4f34b5c71a7fa-20210408 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1806522843; Thu, 08 Apr 2021 02:51:42 -0700 Received: from MTKMBS31N1.mediatek.inc (172.27.4.69) by MTKMBS62N2.mediatek.inc (172.29.193.42) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Apr 2021 02:51:40 -0700 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 8 Apr 2021 17:51:36 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS32.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 8 Apr 2021 17:51:35 +0800 Message-ID: <1617875495.12105.10.camel@mhfsdcap03> Subject: Re: [PATCH 4/6] usb: xhci-mtk: add support runtime PM From: Chunfeng Yun To: Ikjoon Jang CC: Rob Herring , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger , "Rafael J. Wysocki" , Len Brown , Pavel Machek , , , , , , , Tony Lindgren , Tianping Fang , Eddie Hung , Nicolas Boichat Date: Thu, 8 Apr 2021 17:51:35 +0800 In-Reply-To: <1617874514-12282-4-git-send-email-chunfeng.yun@mediatek.com> References: <1617874514-12282-1-git-send-email-chunfeng.yun@mediatek.com> <1617874514-12282-4-git-send-email-chunfeng.yun@mediatek.com> X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: E15A2741E4BB7D8CC38E834F7543B5CB54B1540CBD14BBD60B90D85081593F412000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210408_105145_763368_59483029 X-CRM114-Status: GOOD ( 12.03 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Ikjoon, On Thu, 2021-04-08 at 17:35 +0800, Chunfeng Yun wrote: > A dedicated wakeup irq will be used to handle runtime suspend/resume, > we use dev_pm_set_dedicated_wake_irq API to take care of requesting > and attaching wakeup irq, then the suspend/resume framework will help > to enable/disable wakeup irq. > > The runtime PM is default off since some platforms may not support it. > users can enable it via power/control (set "auto") in sysfs. > > Signed-off-by: Chunfeng Yun > --- > drivers/usb/host/xhci-mtk.c | 140 +++++++++++++++++++++++++++++++----- > 1 file changed, 124 insertions(+), 16 deletions(-) Please help to test the series on mt8192 chromebook, thanks a lot _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel