Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp134469pxx; Wed, 28 Oct 2020 00:08:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgga/XCyL9x6+QDPwSWMJj2q6YxJwjOkfa86XJ+X5YKxSkwo48HbFaywfw7jcnphSFQv0s X-Received: by 2002:a17:906:3150:: with SMTP id e16mr6169342eje.266.1603868929228; Wed, 28 Oct 2020 00:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603868929; cv=none; d=google.com; s=arc-20160816; b=s0rsPXI7ipKFJbwdqbdX+5hSiLc9GrWpTMh+qXFhh0nfSAKta3czGnKKUlHJNWDG2Z VBWHM56iyK9fRUxwvEYaTuEOBqcSbEPLNmx8/2XKLL2lz7yQU1auIcogOLbgJH8rMl2Z Zk1vBI/2Y207sc/4gV3xH1m9PVoVaqXrGwAoQxSrZonCeEUv60UImWB69ZDAGBUpMbt7 VlSSORTnpuzrDToE9714N3oHR+JGIr1f5q3Su6ILbg0FE+6uCUw1p2kI+0HTIhAUs3Zm 5/n2KUKB+SZ0IHroiwy57GIFedEwPSLyF6grLuNBklUabvl6rJRQMv+XPz0DLXgXHPJE gwhA== 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=CX9QvQnyne8Hpt4VfAuu4sA7J/V8CvxMVl7RhxE/DMU=; b=PzlOPXcCCo805YeGVponwJKyh7e0VTA7tD+tajlbRkGrKrknE4RW1DVS0ZXPa4gGKW liMl9S5kqGRR5FUQfTe80S2KJwRgA6O2kH/ElPmmg+eF9dJAogvxgj3HNbAm7Cmwth+N 81VgQRoficEDt4XFwRIQp/JmJwXriv8YSbGzEZxxxKdo8KLFeFBUR3v8vqTyQgSFWKYX sg8hMXD+s51RrnNcO8PNS5+ImBZ5GfFbvSH4IM5PO1FuBDIEr66XpH2k/onUr8gCtnlC 0pJOlIo5GUuSFzgLyaatBWOLhyTAYVmirwDq6cZ0k25jtbnL51ytvo50f0BCYXa/Zjli AAVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=QRDt+h4e; 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 d14si2732415edu.275.2020.10.28.00.08.27; Wed, 28 Oct 2020 00:08:49 -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=QRDt+h4e; 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 S2899098AbgJ0LSs (ORCPT + 99 others); Tue, 27 Oct 2020 07:18:48 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:39305 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2437533AbgJ0LSr (ORCPT ); Tue, 27 Oct 2020 07:18:47 -0400 X-UUID: e68911411baf450c89990908e0e39228-20201027 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=CX9QvQnyne8Hpt4VfAuu4sA7J/V8CvxMVl7RhxE/DMU=; b=QRDt+h4egqmodeDEPfuM/zQmiCjBEtm6Q3JQ2eJNmmUGxR8yceTTKTge6lrbnvt9KYOONwBktD+8k4cuFkPhooAi9kP9z0Mz9ipEhkYBNRy5uy6yxQfm270KFMqFOwhR//sgM1N9TD0kVCDo0juJievaUJFDLeWMFOLgBtfrq4s=; X-UUID: e68911411baf450c89990908e0e39228-20201027 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 401951614; Tue, 27 Oct 2020 19:18:39 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 27 Oct 2020 19:18:37 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 27 Oct 2020 19:18:36 +0800 Message-ID: <1603797517.25228.3.camel@mtksdaap41> Subject: Re: [PATCH v3 15/16] soc: mediatek: pm-domains: Add default power off flag From: Weiyi Lu To: Matthias Brugger , Matthias Brugger , Matthias Brugger , Matthias Brugger , Matthias Brugger , Matthias Brugger , Matthias Brugger CC: Enric Balletbo i Serra , , , , Collabora Kernel ML , , , , Enric Balletbo i Serra , , , , Collabora Kernel ML , , , , Enric Balletbo i Serra , , , , Collabora Kernel ML , , , , Enric Balletbo i Serra , , , , Collabora Kernel ML , , , , Enric Balletbo i Serra , , , , Collabora Kernel ML , , , , Enric Balletbo i Serra , , , , Collabora Kernel ML , , , Date: Tue, 27 Oct 2020 19:18:37 +0800 In-Reply-To: <05be2a94-d6e6-36e5-2c14-6d971e4a7677@gmail.com> References: <20201026175526.2915399-1-enric.balletbo@collabora.com> <20201026175526.2915399-16-enric.balletbo@collabora.com> <05be2a94-d6e6-36e5-2c14-6d971e4a7677@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: ED58C28063F2386AC2BAD60DEE964D3B242838AD98D89E15AEA1582974FEA3202000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDIwLTEwLTI3IGF0IDExOjUzICswMTAwLCBNYXR0aGlhcyBCcnVnZ2VyIHdyb3Rl Og0KPiANCj4gT24gMjYvMTAvMjAyMCAxODo1NSwgRW5yaWMgQmFsbGV0Ym8gaSBTZXJyYSB3cm90 ZToNCj4gPiBGcm9tOiBXZWl5aSBMdSA8d2VpeWkubHVAbWVkaWF0ZWsuY29tPg0KPiA+IA0KPiA+ IEZvciBzb21lIHBvd2VyIGRvbWFpbiwgbGlrZSBjb25uIG9uIE1UODE5MiwgaXQgc2hvdWxkIGJl IGRlZmF1bHQgT0ZGLg0KPiA+IEJlY2F1c2UgdGhlIHBvd2VyIG9uL29mZiBjb250cm9sIHJlbGll cyB0aGUgZnVuY3Rpb24gb2YgY29ubmVjdGl2aXR5IGNoaXANCj4gPiBhbmQgaXRzIGZpcm13YXJl LiBBbmQgaWYgcHJvamVjdCBjaG9vc2Ugb3RoZXIgY2hpcCB2ZW5kb3Igc29sdXRpb24sDQo+ID4g dGhvc2UgbmVjZXNzYXJ5IGNvbm5lY3Rpdml0eSBmdW5jdGlvbnMgd2lsbCBub3QgcHJvdmlkZWQu DQo+ID4gDQo+ID4gU2lnbmVkLW9mZi1ieTogV2VpeWkgTHUgPHdlaXlpLmx1QG1lZGlhdGVrLmNv bT4NCj4gPiBTaWduZWQtb2ZmLWJ5OiBFbnJpYyBCYWxsZXRibyBpIFNlcnJhIDxlbnJpYy5iYWxs ZXRib0Bjb2xsYWJvcmEuY29tPg0KPiA+IC0tLQ0KPiA+IA0KPiA+IENoYW5nZXMgaW4gdjM6IE5v bmUNCj4gPiBDaGFuZ2VzIGluIHYyOiBOb25lDQo+ID4gDQo+ID4gICBk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