Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2780233yba; Mon, 15 Apr 2019 20:23:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZeRf41t/aoSUWhQaXmXz7d6CUdP6c4eRvRlYT6juXVmb+WX2cX2vy7SPgHjxFhlECovHq X-Received: by 2002:aa7:8d9a:: with SMTP id i26mr67686866pfr.220.1555385013217; Mon, 15 Apr 2019 20:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555385013; cv=none; d=google.com; s=arc-20160816; b=r5ghXfgtZX4VrfsKb5kmuWCfHIaFRSHSwdt/qML851rl9giiEi7u2GPr9+mckGnPxa 0bDczSulrzh2cFha0ORPrpiYHHpK0NBiRUIxqV1umsxslPLFI8mO1XKMpyNEVzrklBYV mJpeAxdat/+iY1xp/geeHX3Oq7j81CX9+IGSRGwcPww0lChu42YsPc1sR0fdd/DP8AAV SfwA+VEct2YGk9qUn14fgSSW2Pze7Uk2Bq8oo95ZtjMGEAlUuKpuNg76gdjulPvJyhbu +I44xQtdhiA3MVQkWKwSsIDXmFIUGx7vCCEqQKfUKOHCOOjRNo6XM8hRkACtlS7IJbb8 rKqA== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=510j1AbXBqLs5c6+KYCcTvdMaCgrIcbV/GU6fvQxwjo=; b=az+ljhqXfPls4+a+fKyYsVbyyc9MAuc9JCELka0kC2Rmvg0pKuIRHbXqnz0bWXtcmt 8/b5kafgWvVLmyKb4XZ+wwPbUoAbQZLVcrt6fvHHx7VyP1NtiMMkPzbEDXh/9UiaMqgR LpoQscl8Hb4360oibYVM/Ba/2L27y9TFOAOP0w1cqSYHDSUFxJAAhgf4VrlE9rTOjqJy q9zzp4KrKYWfonqLuT1nTC4db5/8J7wAj8YbMF0gJXXxcDiBoA2cYzirYhcCWu9qlh3D 7tNdJ4kGujCs8NhlBTpNAMyj/oqAfWEjTZSY3+GqspgQT9fzs+Vn7s3xTAriLpADM9vD A9pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=aIZ7zX0q; 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 cv9si51109695plb.371.2019.04.15.20.23.17; Mon, 15 Apr 2019 20:23:33 -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=selector1 header.b=aIZ7zX0q; 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 S1726837AbfDPDWb (ORCPT + 99 others); Mon, 15 Apr 2019 23:22:31 -0400 Received: from mail-eopbgr70050.outbound.protection.outlook.com ([40.107.7.50]:10921 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726237AbfDPDWb (ORCPT ); Mon, 15 Apr 2019 23:22:31 -0400 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=510j1AbXBqLs5c6+KYCcTvdMaCgrIcbV/GU6fvQxwjo=; b=aIZ7zX0qEPZl6pCL+v4o6mMK035Dfs3+uLp+6/C63RTLxJxsSXDBTERqFMFNmlJgR5sikKBpu3vMkU54yemPfUWbY4KU5Z+h7g7Z0B960npB7NCaRmdOTEexZypqbT+1AuFker5sKWtCOeD+XCdAFTRkbjtRIITPPph9xsQ6DPE= Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com (52.133.30.10) by AM6PR0402MB3895.eurprd04.prod.outlook.com (52.133.29.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1813.11; Tue, 16 Apr 2019 03:22:25 +0000 Received: from AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::c854:fc94:f9ed:2ca2]) by AM6PR0402MB3911.eurprd04.prod.outlook.com ([fe80::c854:fc94:f9ed:2ca2%6]) with mapi id 15.20.1792.020; Tue, 16 Apr 2019 03:22:25 +0000 From: Anson Huang To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "rui.zhang@intel.com" , "edubezval@gmail.com" , "daniel.lezcano@linaro.org" , Aisheng Dong , "ulf.hansson@linaro.org" , Daniel Baluta , Peng Fan , "heiko@sntech.de" , "horms+renesas@verge.net.au" , "agross@kernel.org" , "olof@lixom.net" , "bjorn.andersson@linaro.org" , "jagan@amarulasolutions.com" , "enric.balletbo@collabora.com" , "marc.w.gonzalez@free.fr" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-pm@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V12 3/5] thermal: imx_sc: add i.MX system controller thermal support Thread-Topic: [PATCH V12 3/5] thermal: imx_sc: add i.MX system controller thermal support Thread-Index: AQHU9AOc8iXKmYQeMUm4+FbUnbYclA== Date: Tue, 16 Apr 2019 03:22:25 +0000 Message-ID: <1555384609-7030-3-git-send-email-Anson.Huang@nxp.com> References: <1555384609-7030-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1555384609-7030-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR02CA0133.apcprd02.prod.outlook.com (2603:1096:202:16::17) To AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3adab16f-1c94-42b7-e8e1-08d6c21abf2d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600140)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM6PR0402MB3895; x-ms-traffictypediagnostic: AM6PR0402MB3895: x-microsoft-antispam-prvs: x-forefront-prvs: 000947967F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(39860400002)(366004)(136003)(396003)(346002)(376002)(199004)(189003)(6512007)(106356001)(105586002)(53936002)(2501003)(36756003)(6116002)(3846002)(66066001)(68736007)(486006)(110136005)(316002)(5660300002)(11346002)(446003)(476003)(2616005)(97736004)(71190400001)(71200400001)(81166006)(99286004)(8936002)(81156014)(8676002)(50226002)(52116002)(102836004)(256004)(14454004)(478600001)(6506007)(386003)(26005)(7736002)(4326008)(76176011)(86362001)(2906002)(7416002)(186003)(2201001)(25786009)(6486002)(6436002)(305945005)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3895;H:AM6PR0402MB3911.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: hQehXe3LHrDIgZ5CNShQgP13uDVCMjcqVgBzIl969dZW5spFzy7KHgYVELrYdxlrjUZfRimbgwRxLfXO7sGzCUYwV7IgYfcggv1zcEFRND4gLpBLO2rRhnEnKlSt8D/ZjflBzupnEDhwa4ARNNoVXZG1aGzT0i3ZBs+lJngzneX3ODLVzFjS0E/aOBvikpFKcH7P4TxQSMgXtGCAIjmFjN2uOUSBeD6DjdgqWIW207RzQ9VKf8Bvcn25tVhcxHJ7uLLAT0V8baB3PGA94e1mALmOhfHg5nlECrwtMjZ+JpC1kLE8BzF9puAy7Ye6i6EN3iYVoS2pp5g33BOSoUQCtuXHDvGQ8cKgA/aabd1DhCB0OTKsFp5Yl6tc7RcemnrYOHoNlx+conPsH/M04AXya9u1Mazjx2Pj0+VwB+U1tbI= 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: 3adab16f-1c94-42b7-e8e1-08d6c21abf2d X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Apr 2019 03:22:25.6602 (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-Transport-CrossTenantHeadersStamped: AM6PR0402MB3895 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org aS5NWDhRWFAgaXMgYW4gQVJNdjggU29DIHdoaWNoIGhhcyBhIENvcnRleC1NNCBzeXN0ZW0gY29u dHJvbGxlcg0KaW5zaWRlLCB0aGUgc3lzdGVtIGNvbnRyb2xsZXIgaXMgaW4gY2hhcmdlIG9mIGNv bnRyb2xsaW5nIHBvd2VyLA0KY2xvY2sgYW5kIHRoZXJtYWwgc2Vuc29ycyBld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