Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp987991pxf; Thu, 8 Apr 2021 18:55:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHydg/Ck4QFpu9gPQwBAMjnWy4qIqu6XWaJraTZDyU/9VXmRH0nA/mjOjFRdIHiGk5x0X7 X-Received: by 2002:a05:6402:757:: with SMTP id p23mr3474097edy.49.1617933332969; Thu, 08 Apr 2021 18:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617933332; cv=none; d=google.com; s=arc-20160816; b=wLIYmumMrcyKjDkdvq89n12BrLJ0J+dRGpGDwNH9yMxmYFjXxGwyEw7p0gKtztTcJb 4/oJ9p5KZhVJzFxNozJAgHIgmL6mmTL/IXfxRsHJ8K3nqy3nUPJ8IwIj6gzYMFOXR7vi ZDAVxKX6t96/c3xPbaRejXtIyhBsONKXjHUMdWd7GVk0MVff5XRw1hIiXmPq4dXIqCD9 pwFB0ZYwlOXG9UGeFvBRHYlZaTzlwcX5apMX8MNI14NxhrJvQ9adRTfpRmXD3Kl0ER0S R9xjmIgmst79LAEA5+yXTwMEABcRtqTVS4f/Gdzk+1+WO8NWS3uIn5jW+dvrtuonVv8x 6lew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=WCCGjD2i/tFPN4rjc7RFbfR3PPHyPKT9cvYT4d2kpJs=; b=aTJki/KEx68bC58+UAZ5aubleFrpPnqvUyVUIC59b9Ixh+UWHiF94H9ujZ8WC/6/AU mGhVYccrsuziycN8FnVLsdJs8SV0dyAkF8r8KwlMlYU4/McoiOyuV5LpgAdDmJ/vQhzl pLqd4Y9vE/gttkgGci+fOeCl+m2gCtT3zrPYoOKP3ZMiBOmHXYaWxmpVfpopdbGKf4zL EVYu5qsFO2XkopQB7C96L/EaaDDT5AGmSehA1fU6Erak0Te80Jt3VUILgF9cDnf+LCuL fJQ4aK33Q/S040Sl+57eEOTsCL9Fnp4OYCK/gb4Uo8w+lYIt1BQ5QdKPoTLA6OAxgFcK +JjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tuI4zZqT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd19si952062ejc.62.2021.04.08.18.55.09; Thu, 08 Apr 2021 18:55:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=tuI4zZqT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233025AbhDIBx6 (ORCPT + 99 others); Thu, 8 Apr 2021 21:53:58 -0400 Received: from Mailgw01.mediatek.com ([1.203.163.78]:2182 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232426AbhDIBx5 (ORCPT ); Thu, 8 Apr 2021 21:53:57 -0400 X-UUID: a4f0787ea6d44ab690a1f2a4e8825695-20210409 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=WCCGjD2i/tFPN4rjc7RFbfR3PPHyPKT9cvYT4d2kpJs=; b=tuI4zZqT96VcPhiXPyxpRwg/PKm6gMb2+d/cWppfm/0268DTaBaGKrg7Tum/uNhDyQzaDKS/aKb6G1Lif/2A6qhcgS23+qX2v/nb1DUY2Rb2QMKxlvK6gUVLYUytjptKATClxDhZSPjKqNB2WwcJo3IP+qPzM/eK6enqCzuiLho=; X-UUID: a4f0787ea6d44ab690a1f2a4e8825695-20210409 Received: from mtkcas32.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 346375158; Fri, 09 Apr 2021 09:53:40 +0800 Received: from MTKCAS32.mediatek.inc (172.27.4.184) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 9 Apr 2021 09:53:32 +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; Fri, 9 Apr 2021 09:53:31 +0800 Message-ID: <1617933211.12105.22.camel@mhfsdcap03> Subject: Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called From: Chunfeng Yun To: "Rafael J. Wysocki" CC: Rob Herring , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger , "Rafael J. Wysocki" , Len Brown , Pavel Machek , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" , Linux ARM , "moderated list:ARM/Mediatek SoC..." , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "Linux Kernel Mailing List" , Linux PM , Tony Lindgren , Tianping Fang , Eddie Hung , "Ikjoon Jang" , Nicolas Boichat Date: Fri, 9 Apr 2021 09:53:31 +0800 In-Reply-To: References: <1617874514-12282-1-git-send-email-chunfeng.yun@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: ACE7095BD198D82D0CD3C193451A34F2488D21E8BCBB24999214E20CCB4948BB2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVGh1LCAyMDIxLTA0LTA4IGF0IDE5OjQxICswMjAwLCBSYWZhZWwgSi4gV3lzb2NraSB3cm90 ZToNCj4gT24gVGh1LCBBcHIgOCwgMjAyMSBhdCAxMTozNSBBTSBDaHVuZmVuZyBZdW4gPGNodW5m ZW5nLnl1bkBtZWRpYXRlay5jb20+IHdyb3RlOg0KPiA+DQo+ID4gV2hlbiB0aGUgZGVkaWNhdGVk IHdha2UgaXJxIGlzIGxldmVsIHRyaWdnZXIsIGVuYWJsZSBpdCBiZWZvcmUNCj4gPiBjYWxsaW5n IHJ1bnRpbWVfc3VzcGVuZCwgd2lsbCB0cmlnZ2VyIGFuIGludGVycnVwdC4NCj4gPg0KPiA+IGUu Zy4NCj4gPiBmb3IgYSBsb3cgbGV2ZWwgdHJpZ2dlciB0eXBlLCBpdCdzIGxvdyBsZXZlbCBhdCBy dW5uaW5nIHRpbWUgKDApLA0KPiA+IGFuZCBiZWNvbWVzIGhpZ2ggbGV2ZWwgd2hlbiBlbnRlcnMg c3VzcGVuZCAocnVudGltZV9zdXNwZW5kICgxKSBpcw0KPiA+IGNhbGxlZCksIGEgd2FrZXVwIHNp Z25hbCBhdCAoMikgbWFrZSBpdCBiZWNvbWUgbG93IGxldmVsLCB3YWtlIGlycQ0KPiA+IHdpbGwg YmUgdHJpZ2dlcmVkLg0KPiA+DQo+ID4gICAgICAgICAgICAgICAgIC0tLS0tLS0tLS0tLS0tLS0t LQ0KPiA+ICAgICAgICAgICAgICAgIHwgICAgICAgICAgIF4gICAgIF58DQo+ID4gLS0tLS0tLS0t LS0tLS0tLSAgICAgICAgICAgfCAgICAgfCAtLS0tLS0tLS0tLS0tLQ0KPiA+ICB8PC0tLSgwKS0t LT58PC0tKDEpLS18ICAgKDMpICAgKDIpICAgICg0KQ0KPiA+DQo+ID4ga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