Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1174549pxf; Fri, 9 Apr 2021 01:44:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyt6jRURyN4pKYyGsl9Gq14QmhT5TEyH16qAUY2Q3mzQIiDoehlLAj6oao7pu1ZsKFOAkCB X-Received: by 2002:a17:902:ec02:b029:e9:209f:e981 with SMTP id l2-20020a170902ec02b02900e9209fe981mr11615593pld.47.1617957893359; Fri, 09 Apr 2021 01:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617957893; cv=none; d=google.com; s=arc-20160816; b=RIDk1khdqLB84Ds4aWIkqQdY9Q/dhxaDM6i9V63tiQv3zKrzL4TaTl9thfd+EjykdP tlvsyrWsq7wZKpurG09UrW1rj4lRSGRf+cRqTNXS0oMZYbE6URJ3ljSOYsN3ESdKPMvY LuqjmXYvlx5hHt3QAwOsvnmGMbHPwFxfMZgC27KGUWvjIx9hUh+rLLjSrl4+6inCY0G3 ooyh/j6TztXlBf/yINDehJIYVS17fxxiM53q939RWk53S7WODX/Sz/s9s5I3H3KQ73o6 LQB+rzq9iTW4iAKNoMGFZEzuIVB9eEIX0ljM4o4d+0skO/C2xVWU+TBRb2aXit+v1VjH a79Q== 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=LWR0YYJF62R73X/2PazKkQVUbwMvHOS/MQ9V7awNAws=; b=ikW1IBJ5MmmYb7YNZDTULsPOf5IKH2HnlYRveKYwAzs5WY/PZJVPka9b+UC6Cwoicc +Pr+oOSvZ4VWOfucxkJ/HHfzjfPanin7QF1UKgKmsK6OnDN9M5HhLgWVFzivBOVAAjp3 iTnMW5S/O4sRTMZYnMECndpR2yF3CB1meIQSCeYUFF/pyHh4qwGuGf08QxOz1kitCQEv QrKMDYec/3dJTXUibfi2CdoF5P1L6AlDZQYPOnM4V6EQ7XJ2adRncVz7V/WQHT0kMEZj OCe8/Yr6tyw6ibyfLVQwTU1z5CXYTZ+yTOLKebya9jURrjzo9J0v7dKvibmIMS5IBytt KJQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="B/IYe5Bx"; 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 j15si2183640pgm.116.2021.04.09.01.44.41; Fri, 09 Apr 2021 01:44:53 -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="B/IYe5Bx"; 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 S232161AbhDIIni (ORCPT + 99 others); Fri, 9 Apr 2021 04:43:38 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:14290 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S232026AbhDIInh (ORCPT ); Fri, 9 Apr 2021 04:43:37 -0400 X-UUID: faead521e2584fada37d7afbfb6406cf-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=LWR0YYJF62R73X/2PazKkQVUbwMvHOS/MQ9V7awNAws=; b=B/IYe5BxeZB+RaN6vk7LP2paPDef9IxtAnnv/pGluFjyxDFjXjhwTu6ffQkZQ7k8XlcJYRQpTaoxn0OgmYYKiubmVARzjz70nq1FNxTl7Feww7ZmK1MyZyQ1q3J5aZ4AI8jR1p8xLG/OPSGSA5dBDF5E8ic4D9dJvuepBZbyd/M=; X-UUID: faead521e2584fada37d7afbfb6406cf-20210409 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 328637584; Fri, 09 Apr 2021 16:43:21 +0800 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; Fri, 9 Apr 2021 16:43:19 +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 16:43:19 +0800 Message-ID: <1617957799.12105.31.camel@mhfsdcap03> Subject: Re: [PATCH 1/6] PM: runtime: enable wake irq after runtime_suspend hook called From: Chunfeng Yun To: Ikjoon Jang CC: Rob Herring , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger , "Rafael J. Wysocki" , Len Brown , Pavel Machek , , "moderated list:ARM/Mediatek SoC support" , "moderated list:ARM/Mediatek SoC support" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , , Tony Lindgren , Tianping Fang , Eddie Hung , Nicolas Boichat Date: Fri, 9 Apr 2021 16:43:19 +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: 7CFDA8CB831F2DE86455E79C381B3FB824379DAED8D4FA5615EB49D1A8F27F8D2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIxLTA0LTA5IGF0IDEzOjMyICswODAwLCBJa2pvb24gSmFuZyB3cm90ZToNCj4g SGkgQ2h1bmZlbmcsDQo+IA0KPiBPbiBUaHUsIEFwciA4LCAyMDIxIGF0IDU6MzUgUE0gQ2h1bmZl bmcgWXVuIDxjaHVuZmVuZy55dW5AbWVkaWF0ZWsuY29tPiB3cm90ZToNCj4gPg0KPiA+IFdoZW4g dGhlIGRlZGljYXRlZCB3YWtlIGlycSBpcyBsZXZlbCB0cmlnZ2VyLCBlbmFibGUgaXQgYmVmb3Jl DQo+ID4gY2FsbGluZyBydW50aW1lX3N1c3BlbmQsIHdpbGwgdHJpZ2dlciBhbiBpbnRlcnJ1cHQu DQo+ID4NCj4gPiBlLmcuDQo+ID4gZm9yIGEgbG93IGxldmVsIHRyaWdnZXIgdHlwZSwgaXQncyBs b3cgbGV2ZWwgYXQgcnVubmluZyB0aW1lICgwKSwNCj4gPiBhbmQgYmVjb21lcyBoaWdoIGxldmVs IHdoZW4gZW50ZXJzIHN1c3BlbmQgKHJ1bnRpbWVfc3VzcGVuZCAoMSkgaXMNCj4gPiBjYWxsZWQp LCBhIHdha2V1cCBzaWduYWwgYXQgKDIpIG1ha2UgaXQgYmVjb21lIGxvdyBsZXZlbCwgd2FrZSBp cnENCj4gPiB3aWxsIGJlIHRyaWdnZXJlZC4NCj4gPg0KPiA+ICAgICAgICAgICAgICAgICAtLS0t LS0tLS0tLS0tLS0tLS0NCj4gPiAgICAgICAgICAgICAgICB8ICAgICAgICAgICBeICAgICBefA0K PiA+IC0tLS0tLS0tLS0tLS0tLS0gICAgICAgICAgIHwgICAgIHwgLS0tLS0tLS0tLS0tLS0NCj4g PiAgfDwtLS0oMCktLS0+fDwtLSgxKS0tfCAgICgzKSAgICgyKSAgICAoNCkNCj4gPg0KPiANCj4g Q2FuJ3Qgd2UganVzdCB1c2UgYSBmYWx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