Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3262461ybb; Tue, 31 Mar 2020 01:30:32 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs13jKhB7v/zD0DCtP61LzGTaBcRd7zxl5Rf2KjLUS3sQASsSiVUq5tiOhULpx+rVrL133/ X-Received: by 2002:aca:5345:: with SMTP id h66mr1371595oib.110.1585643432143; Tue, 31 Mar 2020 01:30:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585643432; cv=none; d=google.com; s=arc-20160816; b=UN/Wg6edveB8hmoLjzvH/gvlqYMOv9jKNNVG/f/XvjZ/tqjQfG85MS2Oz8+4QsX15U RcNUhYUPDeozH4ctivJYdqTL7Y6KtW2t/9f2z+OpHGmiX0jUDD/ZvsPCl0r1IfLRhhf8 ug65qh1KVxKu2XX2oyETdPYTSbVFaCq2n4Rww3T6EEt4+nuQT4QD5mj5XqpUCBFyVTu1 mtwWSGwxjoBXsHpn54TH8rcuBCXH600J5A8xo0xIblDxmiFUHUaZazupvUNqTYA4YC5K RBE6qSLnluDi1fUhy0WDsvkKsFuiJR9KcOLgmVXZ0hdDANQrrst7l3cHN57G4kQ7UHec i+ug== 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=lct8ONGAtomUDA235lfpqdPWwE+ccWyMYtlhfefuNEw=; b=PHBNmVxc9j4rupfW9lH6WdxQxkujiWSQjz5Bbh31tXVEFo0gklopHaxO3q4RIlBVvT Q30dHqVnfIlD3dmtsTuss7flG51zQnLWwF/o5iDf3tYC2x+LiRZtjRP/VCJrcTelkUJN fNDryleZWvj/7PavOcb+2gQEgJ72iPhdSx99SmtgpDAUEiIaI71JPmeRNdZOAVJDpkLN y57ow68xemtET6+WgEck7Enf3o+8rM/LNBeHHHNANDCiZ8OW5id3DH22gmbpS4xizcxj bjScTrREUTGTISRhyDbEqjw6mtwdfQiKrkRY6O+nDpFXLcbRFlRzQnSQa7wMO5HBbV5X 3jVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fhgoRdVA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w65si7816633ooa.42.2020.03.31.01.30.19; Tue, 31 Mar 2020 01:30:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=fhgoRdVA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730279AbgCaI2x (ORCPT + 99 others); Tue, 31 Mar 2020 04:28:53 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:21491 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729425AbgCaI2w (ORCPT ); Tue, 31 Mar 2020 04:28:52 -0400 X-UUID: 584be1c871564c06a9d56d07a69b8b36-20200331 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=lct8ONGAtomUDA235lfpqdPWwE+ccWyMYtlhfefuNEw=; b=fhgoRdVA04IHF6lAAK9IgHpqMIzX5IRTPw7acBwTeZCsft327eHia5QKroqFECPoCyOWXfCdfxL0KUejX8kDvRJmpVzV819cWmgY3iJDAb1+DzOnrQvRQJu2Ho6ChKPyiKsDFIkLPHdwhYYMsny77AWdDtK4C0A8SQCxrE93qEo=; X-UUID: 584be1c871564c06a9d56d07a69b8b36-20200331 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 561797964; Tue, 31 Mar 2020 16:28:46 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 31 Mar 2020 16:28:41 +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.1395.4 via Frontend Transport; Tue, 31 Mar 2020 16:28:40 +0800 Message-ID: <1585643322.27082.3.camel@mtksdaap41> Subject: Re: [PATCH v11 3/5] mfd: Add support for the MediaTek MT6358 PMIC From: Hsin-hsiung Wang To: Nicolas Boichat , Lee Jones CC: Rob Herring , Matthias Brugger , Alexandre Belloni , Mark Rutland , "Sean Wang" , Sebastian Reichel , "Eddie Huang" , Alessandro Zummo , Kate Stewart , Richard Fontana , Frank Wunderlich , "Josef Friedl" , Thomas Gleixner , "Ran Bi" , Devicetree List , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , lkml , "open list:THERMAL" , , srv_heupstream Date: Tue, 31 Mar 2020 16:28:42 +0800 In-Reply-To: References: <1585627657-3265-1-git-send-email-hsin-hsiung.wang@mediatek.com> <1585627657-3265-4-git-send-email-hsin-hsiung.wang@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: 66156411AC7C6987A565DE837C979D90C593ABB3BD713E9063DE777D8BE22B722000:8 X-MTK: N Content-Transfer-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cywgQVJSQVlfU0laRShtdDYzMjNfZGV2cyksDQo+ID4gICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIE5VTEwsIDAsIHBtaWMtPmlycV9kb21haW4pOw0KPiA+ ICAgICAgICAgICAgICAgICBicmVhazsNCj4gPg0KPiA+ICsgICAgICAgY2FzZSBNVDYzNThfQ0hJ UF9JRDoNCj4gPiArICAgICAgICAgICAgICAgcmV0ID0gbXQ2MzU4X2lycV9pbml0KHBtaWMpOw0K PiA+ICsgICAgICAgICAgICAgICBpZiAocmV0KQ0KPiA+ICsgICAgICAgICAgICAgICAgICAgICAg IHJldHVybiByZXQ7DQo+ID4gKw0KPiA+ICsgICAgICAgICAgICAgICByZXQgPSBkZXZtX21mZF9h ZGRfZGV2aWNlcygmcGRldi0+ZGV2LCBQTEFURk9STV9ERVZJRF9OT05FLA0KPiA+ICsgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBtdDYzNThfZGV2cywgQVJSQVlfU0la RShtdDYzNThfZGV2cyksDQo+ID4gKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIE5VTEwsIDAsIHBtaWMtPmlycV9kb21haW4pOw0KPiA+ICsgICAgICAgICAgICAgICBi cmVhazsNCj4gDQo+IEZyb20gTGVlIEpvbmVzOiAiSW4gYSBzdWJzZXF1ZW50IHBhdGNoIHlvdSBj YW4gY2hvb3NlIHRoZSBjb3JyZWN0DQo+IG10WFhYWF9kZXZzIHN0cnVjdHVyZSB0byBwYXNzIGFu ZCBjYWxsIGRldm1fbWZkX2FkZF9kZXZpY2VzKCkgb25seQ0KPiBvbmNlIGJlbG93IHRoZSBzd2l0 Y2goKS4iDQo+IA0KPiBDYW4geW91IGxvb2sgaW50byB0aGF0IGFzIGEgZm9sbG93LXVwIHBhdGNo Pw0KPiANCj4gDQo+ID4gKw0KPiA+ICAgICAgICAgY2FzZSBNVDYzOTFfQ0hJUF9JRDoNCj4gPiAg ICAgICAgIGNhc2UgTVQ2Mzk3X0NISVBfSUQ6DQo+ID4gKyAgICAgICAgICAgICAgIHJldCA9IG10 NjM5N19pcnFfaW5pdChwbWljKTsNCj4gPiArICAgICAgICAgICAgICAgaWYgKHJldCkNCj4gPiAr ICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmV0Ow0KPiA+ICsNCj4gPiAgICAgICAgICAg ICAgICAgcmV0ID0gZGV2bV9tZmRfYWRkX2RldmljZXMoJnBkZXYtPmRldiwgUExBVEZPUk1fREVW SURfTk9ORSwNCj4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg bXQ2Mzk3X2RldnMsIEFSUkFZX1NJWkUobXQ2Mzk3X2RldnMpLA0KPiA+ICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBOVUxMLCAwLCBwbWljLT5pcnFfZG9tYWluKTsN Cj4gDQo+IFtzbmlwXQ0KDQo=