Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1408485imu; Tue, 20 Nov 2018 17:36:07 -0800 (PST) X-Google-Smtp-Source: AJdET5cA6Rf7c649dWAPgo3vjDNypuFRy6DCyYGfHzhXt1VXliGObdm11PWvcYGSJ59MfAroQwKc X-Received: by 2002:a62:18ce:: with SMTP id 197mr4870005pfy.88.1542764166944; Tue, 20 Nov 2018 17:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542764166; cv=none; d=google.com; s=arc-20160816; b=BUDWODh+gXTxfp/w37CVVKglgRoD5Z9Wvqr1VU8YYjbSl5zOcukI1FrK1iMdFau+ff 4YISrB11eEzvP/yT9T5zy8wXbMJNi5wqXN5AYUXG1/oE73QvHlTJuagaikwfos1bdYxD FGl1tIVRrIJuPK4OkER+VRQHht4gd3Gp4GlR8rltDL8PcwUiBEYgTC2IJ6GGiggkeNs5 thjBnJdWt0dkBVWC5d+H7EK3fJrelmF+TiaM6JS6wu1hqH3B3EmcK0Uxuto6ZKHUlUTD j2OzB1qEx1DecN+XneRSrtZZUxl8oZK9iP3xLX+IzJ7qb/4ZJz0ALFeI189t/8L2UA3g dZYw== 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=5/k/y1ZRxU2DZYJE1EGlkVkJOENoVKlflH6GHmeVRUA=; b=T3f65bgrUUiI7nHdveYFEvCyjJIc7KQ502MJSitdy8SLp+QOodRC0CQhcNcI9wI/pF WxV2kxVTeoHdc4x04ZLw1UFezh7UDvXuz+Z1ro2HDqUY0mExIkvW+Sh0b/GKb9+5G3+Q 8kmjuNb5sPnjWToBi9mDd9GRBNHPJDy8usNbNGipA5LAvnW20F09HQ2VTw8Dxy7D0oie jIKnFIABhef6IOEWkOBNWVG9+fPPkIVJJy2W8WW2i4JZokhy5FIPJ2WBAZAZVudWraYm AWIz581D7htzzPSEW6mwu7ZtvuSNyZE0WX0+0t2eXqxj58WIvaCDebYU93aBjg/DCh/1 jyXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=mkE5Y6lM; 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 y7si41772600pgc.236.2018.11.20.17.35.50; Tue, 20 Nov 2018 17:36:06 -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=mkE5Y6lM; 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 S1726406AbeKUMGl (ORCPT + 99 others); Wed, 21 Nov 2018 07:06:41 -0500 Received: from mail-eopbgr30069.outbound.protection.outlook.com ([40.107.3.69]:59456 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbeKUMGl (ORCPT ); Wed, 21 Nov 2018 07:06:41 -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=5/k/y1ZRxU2DZYJE1EGlkVkJOENoVKlflH6GHmeVRUA=; b=mkE5Y6lM5AMclLAjZofLgbADs7whE2kS6bj8qYSmqjfuprRfzEsYr5ndrmIw1BmELpucWzpYoz0PEsf7N0A8nNLZb378TtLjLCdwCR5WMGM8raKqWDMesOUz5XDO/wW9z/1HVmHyJXNKi7kohCYmVF63P/RFqLNwOzptljCg1vM= Received: from VI1PR04MB4333.eurprd04.prod.outlook.com (52.134.122.155) by VI1PR04MB5038.eurprd04.prod.outlook.com (20.177.50.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1339.26; Wed, 21 Nov 2018 01:34:24 +0000 Received: from VI1PR04MB4333.eurprd04.prod.outlook.com ([fe80::f474:8a44:efb6:769c]) by VI1PR04MB4333.eurprd04.prod.outlook.com ([fe80::f474:8a44:efb6:769c%4]) with mapi id 15.20.1339.027; Wed, 21 Nov 2018 01:34:24 +0000 From: Andy Tang To: "rui.zhang@intel.com" , "daniel.lezcano@linaro.org" , "edubezval@gmail.com" CC: "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/csOb0GIEX5lCKMI2aVO921wgAqborA= Date: Wed, 21 Nov 2018 01:34:23 +0000 Message-ID: References: <20181030010008.27237-1-andy.tang@nxp.com> In-Reply-To: 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: [119.31.174.73] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB5038;6:jHesnAW41M0muyuI+PxpmkIDbDt3oMouggI62dudOcnBW5NEEPSIZJnkkhaE1SZvhDQyD77OYMmyCrGtvMv3zvmlx/LQjpO8p6vDcd8U+vTMj7iU7oEABqqt/N1LoUrC8pKvJDAkXyZnC0A8r/NlWXL5RIqc60f9PMJK6Ht3kVjERPnQjasE1vMBpxaHvlG0xFNyL9XF3l22UB/IJLcvoKz16NYkO957IqmWgSXXQr8vkpIhkJxopxPaFKs3GPgMHM+ypSa3Yy93ELVJH08WTo77nBTHCRg8whFB7xv/K8dS9hG59ncq8+KMty4jBqqnaXjRA7sSSGZDLLtMZJr+LBaAZ5xUcKNDVI8EZBzFWpYrXnyTWzCrssnxDbrMNi+b6sFORIcegGBopzYvNat7nsk3EdvGJQa5FaEalOK+Bb0nYRn72AUcdTzfw6AqMR715VrjXepqwMdZV6wCgVxt7g==;5:UjPjDnNkBunAT5TNdO+fSvhLZlkt1u826umpgaLRP2jMEDQGueqTxHUqyJW/3W3Sj0xljipzfKEuFgro/Ns8Rs0WyFofOreRxkOYo6uMAqGWt7SN6uZr9fTKoQhPeFLbjhcdVGKPzWbaDxp8+ejzVK1bqJhrtnYN1BNeX0mrnrk=;7:tpm1lhhq2w1d031sfXU81bRgwWRjr7mdn39FJRLlGp2tinSXxOt+ytAsb1EK9oFpJEClbGoYCVJy5neXb981A9eLU6FjQ/nbfYOTa4kuhqsNFjrI3L9u3JofY+nMQK0zmddkRDex9TtRnqh9Gye5FA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 98c4c38a-d0a1-4251-02c0-08d64f5177e2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB5038; x-ms-traffictypediagnostic: VI1PR04MB5038: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231442)(944501410)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB5038;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB5038; x-forefront-prvs: 08635C03D4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(39860400002)(346002)(136003)(396003)(199004)(13464003)(189003)(53754006)(229853002)(102836004)(186003)(6246003)(33656002)(9686003)(106356001)(99286004)(26005)(4326008)(55016002)(6506007)(53936002)(53546011)(7696005)(105586002)(8936002)(81166006)(39060400002)(2900100001)(74316002)(8676002)(76176011)(81156014)(68736007)(6436002)(2501003)(14454004)(5660300001)(97736004)(478600001)(54906003)(476003)(11346002)(110136005)(2906002)(446003)(316002)(3846002)(6116002)(44832011)(486006)(25786009)(256004)(7736002)(305945005)(14444005)(86362001)(71190400001)(2201001)(66066001)(71200400001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB5038;H:VI1PR04MB4333.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: X7ct9To4X8/1l8Bz5ZECygw9DaxrsVgH4PO6xwOo5Eaokjs+9chx63gPcf1JzjmBq+VsGxvW4MwON5cqt4liFVAFOP/tdlLWTfuTcvQcvLogeSBU/1N6HhiFHFM2naOTylNhse0K9mjk0A2nEAWnLTJb0LPasPw66CL+zdNcvgphBNTN/I8a5yDUol/xYSFBXxGr/O5Jd9EChXhXBL0FbYLvQYtiGmHe3TJlNWaHU6S6fFjHFaalpB+56Ri64HCYtfbB1TLxXaOAkL67Dq6nBg3O4ARsnS1QI06hX/IHDBQrXy4yin3ZXn6CVqHt2XTwrz/Y/O6e+kiRcz9OWkJDwM3s69jEh8gZGk4b+5T3f6A= 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: 98c4c38a-d0a1-4251-02c0-08d64f5177e2 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2018 01:34:24.0968 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5038 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgYWxsLA0KDQpEbyB5b3UgaGF2ZSBhbnkgY29tbWVudHMgb24gdGhpcyBwYXRjaD8NCg0KSSBm b3VuZCBmb3Igb3VyIHRoZXJtYWwgZHJpdmVyKHFvcmlxX3RoZXJtYWwuYykgdGhlcmUgYXJlIGRp ZmZlcmVudCBiZXR3ZWVuIHRoZSBmb2xsb3dpbmcgdHdvIGdpdCB0cmVlczoNCmdpdDovL2dpdC5r ZXJuZWwub3JnL3B1Yi9zY20vbGludXgva2VybmVsL2dpdC9yemhhbmcvbGludXguZ2l0IA0KYnJh bmNoOiBuZXh0ICANCmdpdDovL2dpdC5rZXJuZWwub3JnL3B1Yi9zY20vbGludXgva2VybmVsL2dp dC9ldmFsZW50aS9saW51eC1zb2MtdGhlcm1hbC5naXQuDQpicmFuY2g6IG5leHQNCg0KQ291bGQg eW91IHBsZWFzZSBjbGFyaWZ5IHdoaWNoIGdpdCB0cmVlL2JyYW5jaCBzaG91bGQgSSB1c2U/DQoN CkJSLA0KQW5keSANCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBbmR5 IFRhbmcNCj4gU2VudDogMjAxOMTqMTHUwjE0yNUgMTU6MjkNCj4gVG86IHJ1aS56aGFuZ0BpbnRl bC5jb207IGRhbmllbC5sZXpjYW5vQGxpbmFyby5vcmcNCj4gQ2M6IGVkdWJ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