Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2058575ybh; Fri, 24 Jul 2020 03:28:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzotj5uJRtoJcKdoGpnpuKBESZeKxBkHR3WPWmk85mVk0/jGkIz2+ISjxwxwW8T1iGCbjMD X-Received: by 2002:a17:906:c56:: with SMTP id t22mr8988709ejf.50.1595586517260; Fri, 24 Jul 2020 03:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595586517; cv=none; d=google.com; s=arc-20160816; b=giK7c/2U3avB40r2rdgUG2C9n4P+DIfRLcbyRwnOjbHse9OltItD8bA0GqzfKVV/N2 RFZgsqCVxs3KoHRl7Fb3pQVi/lTQiVntOoAm0L9qmbLEiCWkJfwWG9iFJFrPVnD+fnLW 66mdg5M1oj77qbVEQ3j3TK6E63kBlfZZPe1mYckpgcQOZSzj/YSoHsB9QpXtcWZU3/yC Xk+7LzlCYFO0EuJxUbVbhAEN1I/uSX3b1In/1wHxQlsM8s6MF7EfouvIhLfcLKJfdJOB 9LaVWe7VE1eRaOtSy8wrlgTc+Fl5sl/p/5+TiDxzDJfRFdUKIus1vgYjsd3zasNYHQer Sgog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=QxNgObDGJzQxDLrTGZIVOSiVP4T6qaCHpTNaWSH+6v0=; b=NkzN5rm+CHqyKq6HnL889pJiihWlUE7iscDS8E22H+zCPMZ9+ySdNubZdUJ7EOkt/o nXSUu6N0syNhoqTBTNnybT5MvbZ1KULTIhhh6XlnnT5VdI7CLFyp/QgXkFxAZi8YdpjF yVZdX7XysGHdO1K2n2AePOeSgdmGQcmAQLan4+vs/xKXRYCXIXlwvIpyJgSQTeuFMcbP l3gqaegVnuBvHEZfRf2h6Yzi7QEXSPbL05Ha41hZeCZdhG3n2mv7ob5KOw0m+WUq3ZRH 6Ewmcic/6+rStyMy9/ByipsBa2QKSSoQudxLRbPzWUvOvktdPayvJsTKD6t0/FBup5KP gOgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CW+hvSKh; 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 j8si215231edt.383.2020.07.24.03.28.14; Fri, 24 Jul 2020 03:28:37 -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=CW+hvSKh; 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 S1726801AbgGXKY5 (ORCPT + 99 others); Fri, 24 Jul 2020 06:24:57 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:54033 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726114AbgGXKY4 (ORCPT ); Fri, 24 Jul 2020 06:24:56 -0400 X-UUID: 9dbe5281695f49dcbe4e1dd1afcd1041-20200724 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=QxNgObDGJzQxDLrTGZIVOSiVP4T6qaCHpTNaWSH+6v0=; b=CW+hvSKhoe0wHh13K3gvnT01XtI/ixDEAPOA5xTHhdrFcCxwxBTCXzocn//+HqkUt33EOEiSMl2qEGRU/oZNZKZFmztO9ouUg7qodKeHXU7RCSVCapp0gM1nhYsBkmvdE8X6cVNq244fe1TBDyiSV9rZAiYRL5RG1edgRYwwQuw=; X-UUID: 9dbe5281695f49dcbe4e1dd1afcd1041-20200724 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1631690184; Fri, 24 Jul 2020 18:24:51 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 24 Jul 2020 18:24:47 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 24 Jul 2020 18:24:49 +0800 Message-ID: <1595586289.14121.5.camel@mtkswgap22> Subject: Re: [PATCH v2] cpuidle: change enter_s2idle() prototype From: Neal Liu To: "Rafael J. Wysocki" CC: Neal Liu , Sami Tolvanen , "Rafael J. Wysocki" , "Len Brown" , Daniel Lezcano , Thierry Reding , Jonathan Hunter , Jacob Pan , "Matthias Brugger" , ACPI Devel Maling List , Linux PM , linux-tegra , Linux ARM , "moderated list:ARM/Mediatek SoC..." , lkml , wsd_upstream Date: Fri, 24 Jul 2020 18:24:49 +0800 In-Reply-To: References: <1594005196-16327-1-git-send-email-neal.liu@mediatek.com> <1594005196-16327-2-git-send-email-neal.liu@mediatek.com> <1594350535.4670.13.camel@mtkswgap22> <1595233294.8055.0.camel@mtkswgap22> <20200723190724.GA1339461@google.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-TM-SNTS-SMTP: 525C25BBD1A36A92A548897BC52B0D2A9C1552ADE0B6EEB53F27D34A63DF52742000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gRnJpLCAyMDIwLTA3LTI0IGF0IDExOjU3ICswMjAwLCBSYWZhZWwgSi4gV3lzb2NraSB3cm90 ZToNCj4gT24gVGh1LCBKdWwgMjMsIDIwMjAgYXQgOTowNyBQTSBTYW1pIFRvbHZhbmVuIDxzYW1p dG9sdmFuZW5AZ29vZ2xlLmNvbT4gd3JvdGU6DQo+ID4NCj4gPiBPbiBNb24sIEp1bCAyMCwgMjAy MCBhdCAwNDoyMTozNFBNICswODAwLCBOZWFsIExpdSB3cm90ZToNCj4gPiA+IEdlbnRsZSBwaW5n IG9uIHRoaXMgcGF0Y2guDQo+ID4gPg0KPiA+ID4NCj4gPiA+IE9uIEZyaSwgMjAyMC0wNy0xMCBh dCAxMTowOCArMDgwMCwgTmVhbCBMaXUgd3JvdGU6DQo+ID4gPiA+IE9uIFRodSwgMjAyMC0wNy0w OSBhdCAxNDoxOCArMDIwMCwgUmFmYWVsIEouIFd5c29ja2kgd3JvdGU6DQo+ID4gPiA+ID4gT24g TW9uLCBKdWwgNiwgMjAyMCBhdCA1OjEzIEFNIE5lYWwgTGl1IDxuZWFsLmxpdUBtZWRpYXRlay5j b20+IHdyb3RlOg0KPiA+ID4gPiA+ID4NCj4gPiA+ID4gPiA+IENvbnRyb2wgRmxvdyBJbnRlZ3Jp dHkoQ0ZJKSBpcyBhIHNlY3VyaXR5IG1lY2hhbmlzbSB0aGF0IGRpc2FsbG93cw0KPiA+ID4gPiA+ ID4gY2hhbmdlcyB0byB0aGUgb3JpZ2luYWwgY29udHJvbCBmbG93IGdyYXBoIG9mIGEgY29tcGls ZWQgYmluYXJ5LA0KPiA+ID4gPiA+ID4gbWFraW5nIGl0IHNpZ25pZmljYW50bHkgaGFyZGVyIHRv IHBlcmZvcm0gc3VjaCBhdHRhY2tzLg0KPiA+ID4gPiA+ID4NCj4gPiA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