Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp232858ybb; Thu, 19 Mar 2020 20:43:36 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs8BAZ9JGdMtQH5GqtYp+YLstqJgZTM/sEw1QyhVi0dzrGzO8eD99XEljCumCGSgYDT2LpO X-Received: by 2002:a9d:4798:: with SMTP id b24mr5164487otf.243.1584675816188; Thu, 19 Mar 2020 20:43:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1584675816; cv=pass; d=google.com; s=arc-20160816; b=lSjipgsgLeTRvx3/QpRZ3mumSY4Ba95oLNeft50wAkqM4zZJIa4J8niQte8vN+3rMX nXVjb9m6Hs1ENyOvdiDt1ZamCXtUVQy+IsTIvfeGN7olAyzAnJcQGnHnuKmhj2dxowLy FrNxz6ALZ69IiJVvZAdOM5GEySqiO8ZnAxJnO2BaRtZc5ogl1UB/r/lKZE+pOPbt+0lP uMEQk1dYLZEAfFSbaLYXW+7tP2y4Wuj82XQQSHMoRmjAqFlSI6sgvkmYtAQWsantU0N2 FWCnLMjsgbwIBZyeqaeW424MgpdzBtNP95Wp+SuRujvihz3hQUI2oym86+orcOOL1QVr 2kWA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=isaRkMDTseHu15vSiCWq66zL/8VwXApq/HqJ98N0LxM=; b=FY4fBkuj6TtFjcnOVSv1pZFvA95eLbXpWH7B+19M0q3/XUd6zymBftLI2tR4h9MdYP Ercz9B8VdLb9dAUp1/COiP+pBw6/TXHvaZ7vlSIj33ZqWwnkpQWWExx+Aez0YnavVp0A czXxfmXBPZMBfv+kee1P3vB5JEn5e3YYqTwuxVgl3+cc9Kgb/THvPvLQf1LNeqVKvOkL tZqP09s+9zqfdcro63pLshd2IHs2nR/bF0untg0AvospO4HQgrdOTAskfFwpgBBTC49L 9BK5dbsEvBEoiW0MITrH5qNJUrFKOuIDpNjpCfsJd+FoWCslm+bWltdUW1D8yGmlB+gS tkfA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=CmJcJHVG; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 63si2262458otm.66.2020.03.19.20.43.23; Thu, 19 Mar 2020 20:43:36 -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=@nxp.com header.s=selector2 header.b=CmJcJHVG; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727134AbgCTDmG (ORCPT + 99 others); Thu, 19 Mar 2020 23:42:06 -0400 Received: from mail-am6eur05on2049.outbound.protection.outlook.com ([40.107.22.49]:19201 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726596AbgCTDmG (ORCPT ); Thu, 19 Mar 2020 23:42:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c2/fUSzSin2kfzTtZZ3xAfhey3XAnn+VpR8WBkGjYjaBuxIwJuFjZ81hiRZmf3GLZ/NGffoaDM0aApVGm6biu8JxQ9W6Z7/0hrfvCLFj8emOfkDnMqFc59M1uBKyObsY9hDv6RCZrUaXld5bnWQQIDnLdd4aox2cZ8QjBBGpYaEAo9MvRab3O8s41Z4w8X2oEElgAyp0rpodwvtVKxuIKVLQdwdG1uCx7TNj5jhZ8i98AomCvW2g0wXgBZ8ZdMGKiXIoGrGCmY4mxO2HauKDS6ac8jln81Hyaov4iF/2ORKAMpQAuzp4OpVtLe5xy9BFeniMMs38Ch+axeDUFV9MJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=isaRkMDTseHu15vSiCWq66zL/8VwXApq/HqJ98N0LxM=; b=EQEh+gVJfrKfcsNAzovWjCEektJZvU9detK/H48KWzNywmQi4u5XrXwWptdkfTz750z/KGT7ILykiUmGrAzlImTWHqCNdhAvFqDj4Hx7lCG8v83CYnaDMZkcEyCA1S26jUD1NvkgMbp/Iv7DBiFGL7uNusKJ1BZZmIvnqFlpGJK7jlFfR7WZzevmRpL4dOWY3Aqf4ekC/7RBdVPnC2E5ulQjRX06GuU3UN/4JB+I/ltOzzOftoq8PvlqVTQOyk6jVu8Kp+c5Go5DpV7SQa6Mb38976K9oqxg0Nudy3I4qlHdzCM8TDmux9GF4m6S1QrGdaYCby9M1uksPUtRfEzHGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=isaRkMDTseHu15vSiCWq66zL/8VwXApq/HqJ98N0LxM=; b=CmJcJHVG9AJQMxXWrkPXKoYPgXJkP+VZIov9L09OOjrdRpfN3QVUn8ni1deeXSZBj6PxdsLIyrwM0t7YfILjcQpV3aLg9yZYWgeh/S2WOCFJ4qyDmBxJla6w/dzgPfu9hXMoZnRb+p+eB1fl9qHooy3K1vh6u3CqI8v1Kr/iLCE= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3658.eurprd04.prod.outlook.com (52.134.65.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.18; Fri, 20 Mar 2020 03:37:25 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::3143:c46:62e4:8a8b]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::3143:c46:62e4:8a8b%7]) with mapi id 15.20.2835.017; Fri, 20 Mar 2020 03:37:25 +0000 From: Anson Huang To: Daniel Lezcano , "rui.zhang@intel.com" , "amit.kucheria@verdurent.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "linux-pm@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: RE: [PATCH 2/3] thermal: imx8mm: Add i.MX8MP support Thread-Topic: [PATCH 2/3] thermal: imx8mm: Add i.MX8MP support Thread-Index: AQHV9V74kPvlCyYGZ0aw291WqUTD26hQTKgAgACZMtA= Date: Fri, 20 Mar 2020 03:37:24 +0000 Message-ID: References: <1583681240-14782-1-git-send-email-Anson.Huang@nxp.com> <1583681240-14782-2-git-send-email-Anson.Huang@nxp.com> <9ca81c42-6086-eb17-3eda-9bc2dab1101e@linaro.org> In-Reply-To: <9ca81c42-6086-eb17-3eda-9bc2dab1101e@linaro.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: bb8f79b6-bc28-4de6-1417-08d7cc8001a6 x-ms-traffictypediagnostic: DB3PR0402MB3658:|DB3PR0402MB3658: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 03484C0ABF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(136003)(39860400002)(346002)(366004)(396003)(199004)(6506007)(53546011)(81166006)(66476007)(66446008)(2906002)(64756008)(9686003)(8936002)(66946007)(86362001)(66556008)(55016002)(110136005)(316002)(478600001)(76116006)(4326008)(81156014)(5660300002)(71200400001)(33656002)(7416002)(52536014)(44832011)(26005)(7696005)(186003)(8676002)(32563001)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3658;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lqEo/TSQ3UsPoLAm2DvcBZXySnoQQVHtIo7krFmgtNvSL+NW8+af9dE+PFIaF/I+uZPiiM+teIyH3W3souQJmTZbDqOc6aKaNow/FgV5ZEyHpS8SZz0EdqGL4UZMfW4tIBdnblkInmjzss8Zb573fOJfylALmFtqMSJNpUMabyc87rUmZmCAREy5snxzom5ptEaMRKrMiXJr2/9WthBjigFdG1YvUzuNdAZgetSCYz/bcWnrHEww6mk0jpfhRGr81+Rvz0Ew5S1SW7vxh9GzJ5s64A6Xj8xp5CJEVTUIcX5ygZYMDLNg9iZUPUFXTRsetkrvd9CFuxCLXtDFSvGh3J312udr27+bV5G/6vtwVqe/xTiTg86g6DhTe+Zs7jSdArmZ5UHd7WXAvhGlnRRY7crWXzZB10WoEzTOUTzJlmsYmT+zaLuj+RjKv3IOvM1mpV4f+4uWnzy5sq2wRSj+Ku10sgJp/5tkPaVu+/+1CTXoV+eaqCX+0m7a/I55NVeuCkPck5tBm9/2K9S6DEdDOg== x-ms-exchange-antispam-messagedata: Vu6R81wUFo56kAXMnCkIsyOvGrWXKQn1ns9cD+Za7OPI5F5ZHkopuZ4PJsH7Kn+uu8vGwYJQZnPwA2A6LnDy/YwwKPh4P4UBmhJVHWvIvD5lnyFg8Bimieil34ocO9o01f6OyGhuJAMSXtdgSwRcOQ== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb8f79b6-bc28-4de6-1417-08d7cc8001a6 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Mar 2020 03:37:25.0626 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: BF5f3iWVwcBpQk5Zq6t/tMT8dJXfiC+uD0BFz8vSwDqx5ma/lwWlhW88BGUlfLCiRL760LnTYKzK1RHeqW/smg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3658 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIERhbmllbA0KDQo+IFN1YmplY3Q6IFJlOiBbUEFUQ0ggMi8zXSB0aGVybWFsOiBpbXg4bW06 IEFkZCBpLk1YOE1QIHN1cHBvcnQNCj4gDQo+IE9uIDA4LzAzLzIwMjAgMTY6MjcsIEFuc29uIEh1 YW5nIHdyb3RlOg0KPiA+IGkuTVg4TVAgc2hhcmVzIHNhbWUgVE1VIHdpdGggaS5NWDhN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