Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6354746imu; Tue, 13 Nov 2018 23:29:36 -0800 (PST) X-Google-Smtp-Source: AJdET5d7sFvVR8idIrhxOLMtzuVWAA5zr39pCBtbU3NoO6zxXVtLQfFSCfN+ECb7YILlHy2sNP/A X-Received: by 2002:a17:902:bb83:: with SMTP id m3-v6mr812968pls.144.1542180576720; Tue, 13 Nov 2018 23:29:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542180576; cv=none; d=google.com; s=arc-20160816; b=FqDhuyyUH8+XdoF2Y3EqLUANE02ikjCZPCxqIHbuPpCpXb/qPfjyE+4FVcNx3478xU 4OzyQ5LZFf7kj9FiAXkEAvbEqELYYEwhgJxUBGZbNPHQ0op7ZuG7NoXU0DPRyPhMEFej NktT3MWNCl3z2nnUqU8n7zFhNMvfJZTddc7acqEwb7eVfxeW1RU+tt9485g2gkXRQqBE 0Xi8oPlNPxohTmiyYH7NxKI/Ml6+06b/4G6wse/7bUmYiUg35kIlq0NEBNkPLyiBV5Sq gheD0cSOdRWHTxP+0e01knY91BfTkkMZxmFUdHuR+3HROCRv8G064x7cj8+kEOTAmFw8 RkYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=wj3TU4e/KBt67NFxC7v3lIkipJzYZw5ELLXXbpgKRCk=; b=peyAcbvGfSH0TmKy2872pUpRzwB2UwvqLDg2gFFZTG7rrqrhtClbkgaNmXueQIjDep nQy1YbY53RZwm3roknBeqVd3kPsN7Tv1XBUG+ZRH8ngMX/J93WzjMW8pieItOiYNpmds mzpmR12YzJqYKZA8L/odMf9pKXNCpvg+VNNnSVtdMwuJ7GtKkaoZymhJXME1oCVO3yTS pR8EyuP6PlGJvmw62aft6Q2mjuW10ppZY3ZuEMJvoKw7nuQLIxPtuntFz9EwDQJhThPL X0Fgxq85d5bjcvCuHVrRWlCmMBgFlbIKlHt5+x4jXhSw7VN/dM2y+awGvmVwOHD7tHSk HY8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="Mgi1//Fd"; 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 28si20082809pgz.593.2018.11.13.23.29.21; Tue, 13 Nov 2018 23:29:36 -0800 (PST) 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=selector1 header.b="Mgi1//Fd"; 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 S1731385AbeKNRbB (ORCPT + 99 others); Wed, 14 Nov 2018 12:31:01 -0500 Received: from mail-eopbgr10058.outbound.protection.outlook.com ([40.107.1.58]:65152 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727576AbeKNRbA (ORCPT ); Wed, 14 Nov 2018 12:31:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wj3TU4e/KBt67NFxC7v3lIkipJzYZw5ELLXXbpgKRCk=; b=Mgi1//FdVR6gINYvTBocZ1fmzB7DUhdLv1siEyqgML/eSwaKVcP/qN/T5h74JuEs7zIcvtz+kdCQv+K7i1XPNzCfURKqIqU8nQ5T1T52WqBkhw88kp69EoKgm1rWAWpxRZY3zbmmZzwwr4EGqgY9ZbHU+3EQVdEmFf92h0ozZCw= Received: from VI1PR04MB4333.eurprd04.prod.outlook.com (52.134.122.155) by VI1PR04MB5376.eurprd04.prod.outlook.com (20.178.120.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.28; Wed, 14 Nov 2018 07:28:50 +0000 Received: from VI1PR04MB4333.eurprd04.prod.outlook.com ([fe80::7171:60a1:df37:6ed6]) by VI1PR04MB4333.eurprd04.prod.outlook.com ([fe80::7171:60a1:df37:6ed6%4]) with mapi id 15.20.1294.045; Wed, 14 Nov 2018 07:28:50 +0000 From: Andy Tang To: "rui.zhang@intel.com" , "daniel.lezcano@linaro.org" CC: "edubezval@gmail.com" , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v3] thermal: qoriq: add multiple sensors support Thread-Topic: [PATCH v3] thermal: qoriq: add multiple sensors support Thread-Index: AQHUb+x5QGAd/csOb0GIEX5lCKMI2aVO921w Date: Wed, 14 Nov 2018 07:28:49 +0000 Message-ID: References: <20181030010008.27237-1-andy.tang@nxp.com> In-Reply-To: <20181030010008.27237-1-andy.tang@nxp.com> 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=andy.tang@nxp.com; x-originating-ip: [92.121.36.198] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB5376;6:p1tc+QPu2kzIff/rwY55I2lyTFMHt8meWuyvGU1OEmjqYUC8Nj3dTIkYufm9UAI6oAj6RaYn4U6HzuzY0HT1sP0iTMo0jT8kjtB4oqbJPiJaFRagAcOl2of7w45GvjtjCu2XfanqMBrhTZLOLQrEDbTP8VAroy+mvqUQIBLFINItGzxH1LuDiOoDdLNToGjzklTJHMVl6xWgKODc1V5PAzGr/yo3PUxs93YBdvKnP7uyvBedEQzx8sYjMcUs5KUR7NzwDlqzgDmeTpYgd9alqgrtGsbsOcbP+Wl0FIqFLLfbiU04IdzKwV0e5jt/yrGGj7SBimuMEUGLRxUKakv2B8Mvnby7sYqjq3up973HBWwDZBORqOgBf2aMBGjp7a11rFrt4j4H8nhytrcJIzhIqnzQ+1FVUPjdatMqe9T4UmmyifgV9m9rdDF0HCEV1V03/mgrvTx25xReJbKjKEFnXQ==;5:EIf9AmgOG/zKvvjGEgx6fPsO8ndKnfYKF9YSVGjJgIsoNf0z1yAHKtc15hUFLAEwslteIO6YPI2umonMEOjD8qxIip2TY9KmriD+UyabUyG6UPjNvqdUoHUnt39sY0bwS/nH67TkhBATkSMYgNBaSAVr0png4q2JPixtZRb7MoA=;7:QbekbJyYz9x9zlVIA3MP17WqVWz4g6RzLliFLMA2xBdUbfWJ6GLNH9EBAT+S9wFaUdETSx0Yraqkss+4y2qIhYD5SKypUCALHNvoRBBXwCynnckCy3zApBlE3A96wTEnNaChPTFiPbVuWnyWzGl5Tw== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 3c062f01-38c0-4230-1561-08d64a02d26c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB5376; x-ms-traffictypediagnostic: VI1PR04MB5376: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197)(228905959029699)(85827821059158)(9452136761055)(72170088055959); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231410)(944501410)(52105112)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB5376;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB5376; x-forefront-prvs: 085634EFF4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(136003)(376002)(346002)(396003)(13464003)(189003)(199004)(4326008)(486006)(7696005)(476003)(74316002)(11346002)(66066001)(446003)(44832011)(2501003)(86362001)(110136005)(55016002)(39060400002)(54906003)(478600001)(53936002)(316002)(305945005)(53546011)(6506007)(26005)(6116002)(229853002)(2900100001)(8936002)(3846002)(71190400001)(14444005)(71200400001)(102836004)(186003)(99286004)(256004)(5660300001)(105586002)(106356001)(6436002)(8676002)(2906002)(81166006)(9686003)(97736004)(76176011)(33656002)(81156014)(25786009)(68736007)(6246003)(7736002)(14454004);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5376;H:VI1PR04MB4333.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: cIQDloZqTb1j/r//lzqnrMIj4x+jEg798focj0coWtsBC8+2dGlBoHCt9ISgga9k257VRF/A60bQZawRKyZQa/kzuISgJC6Ab9u8iZNHMjHtyKMWq5xNndoSSVOznHanDPdRTN4GIsWVIjyByuX3jvozudsPJBiJ1xUzdn6sqieF/ZzUaztPiSLmoqT4D0WivD1B2/zbbiI7Dd3jgqP/t5jHV+X1DWMGOwWKqwboh6YBpW0+6i02kaRnMUuJNWOWhXIToCYvFyYIITeGHT9MsTVnwb1QFQOwizG3IFCECXOxVKU5LfOy6pKnFVjJcyn+UNC74FKISPecKqVijXbe+CpN2hRM7fD4CKINXMnmfDM= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3c062f01-38c0-4230-1561-08d64a02d26c X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Nov 2018 07:28:49.8891 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5376 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UElORy4NCg0KQlIsDQpBbmR5DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJv bTogYW5keS50YW5nQG54cC5jb20gPGFuZHkudGFuZ0BueHAuY29tPg0KPiBTZW50OiAyMDE4xOox MNTCMzDI1SA5OjAwDQo+IFRvOiBydWkuemhhbmdAaW50ZWwuY29tOyBkYW5pZWwubGV6Y2Fub0Bs aW5hcm8ub3JnDQo+IENjOiBlZHViZXp2YWxAZ21haWwuY29tOyBsaW51eC1wbUB2Z2VyLmtlcm5l bC5vcmc7DQo+IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc7IEFuZHkgVGFuZyA8YW5keS50 YW5nQG54cC5jb20+DQo+IFN1YmplY3Q6IFtQQVRDSCB2M10gdGhlcm1hbDogcW9yaXE6IGFkZCBt dWx0aXBsZSBzZW5zb3JzIHN1cHBvcnQNCj4gDQo+IEZyb206IFl1YW50aWFuIFRhbmcgPGFuZHku dGFuZ0BueHAuY29tPg0KPiANCj4gVGhlIFFvcklRIExheWVyc2NhcGUgU29DIGhhcyBzZXZlcmFs IHRoZXJtYWwgc2Vuc29ycyBidXQgdGhlIGN1cnJlbnQNCj4gZHJpdmVyIG9ubHkgc3VwcG9ydHMg b25lLg0KPiANCj4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