Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1394907ybn; Wed, 25 Sep 2019 17:42:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjYNv3u1LvQc+XvpmD6X/hNmzbYX/4Y5VlMsHcDHEVj1UOBGp53/xrXVUeIZbuJSSSHnmj X-Received: by 2002:a17:906:4cc3:: with SMTP id q3mr831127ejt.127.1569458524161; Wed, 25 Sep 2019 17:42:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1569458524; cv=pass; d=google.com; s=arc-20160816; b=znxJFjYXBhAeeXYGnIT4S1hQyQostsfLN3tDFLAZ8LOKRQs2LmcWe6y7JZuwXvGgta OIfeH3UmT4HKYH9K0rpDl07/jdMErFH8vA858hBaunHPpZrH9u1w9yMTIfI2NJW1a+Si dhk9XdeTJNSH3EYdnra/dfsDDlxc2wHNub7HtWPVv8bpEQf4FdTYkeg6FyV6osw/l/gc tdFj/wSm+MW38wwkIdiRE+jgMEE8Us/bqBTR3bY7/LdZRHE7hKdKzoB8qCsxHnUKi+nK Z69ZzM/Y9RBR2XWYdGej0raXjYcSMIaXZRz7ekzy8rwmRNRaMQnxRKIYPPRJOMMrHEtB lTDw== 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=ensjIIB16UD0SymcCH/qXfmysPt/QhIT13TpO3cZlJc=; b=uo+wruHduYuIvpK+g76vLueHPW1/G5aePgUGz3AbNTBosEHb/rW0ChgNnBLQrqfcgj oBivEJ3HD8FC0eEdbjFoqNqTMde4X1CjmHCi5dbKYRy2UTSIuCRyhzsdh3mNJKJA/nqR VKJe/YYPUjAn0LZREmO3AsRHbUc0G40Gxgaj6bbwi9jANnN8ezS/WGIL2BUbSScta7V8 J09S46WvsiS/53rnH76UV5IN8mC3TNIaS+vRQ/pLYj6pPCJsCEyqr8k+ZJaJB7sTlve7 y2PvNI4mQNWextsZQRfCOqtKpJx5aWqvg1teG7+BphambJfmkKx4UuVXWGPpIpESxcXS HSpg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=FAHw6+Bw; 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 p14si390646edc.227.2019.09.25.17.41.40; Wed, 25 Sep 2019 17:42:04 -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=FAHw6+Bw; 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 S2440380AbfIXGPe (ORCPT + 99 others); Tue, 24 Sep 2019 02:15:34 -0400 Received: from mail-eopbgr80073.outbound.protection.outlook.com ([40.107.8.73]:10846 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2438728AbfIXGPd (ORCPT ); Tue, 24 Sep 2019 02:15:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9iKc5907GqGzBtc9zYmfrMaAfzmaO0tF/r/n+TyQZwNZEjYEQ6rJdE8BXHaxPqxWy4l94rRA7t+5prlVVwoMK6S1EcFifgvC5TFtIvjCOEbqV19KKogYsxaaWxBZjZaUcOcE7KiRLEcKLfokUuS6f7F6VJFSzgAJiJXmxQkj9L29TQsCJGPwa4c80cgl5qIZovxp8rKwkzU6O9iS8khd+FtGq7Z4C9umOb8DcD8V4CXro66Mvo0N27A5k97Pq9lFBTAmBF7xqh/f7ttveqAkPRGkXHZtJ0OGOsgfsAABtcU6PUH++3bUleG8H/ge2yezdFd5QqrzPttD5CAJogrXA== 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=ensjIIB16UD0SymcCH/qXfmysPt/QhIT13TpO3cZlJc=; b=GnI8RMKjsBjpLLBAProiSV4JOYbO4B57pLlllV3epIXlqXoWdz8Pis7qpFXcD3YY7Y04LNan8xPRg5rd5eOgDLiAVYJfQ7oefplrFRl64yHYL6U9ZNlOzlvlBimTrxjPFjt3ejg3JJ1JLF6pAddknUcwRdRG74Jx7c+Tx29WyAhHOndm9m+JDuY1A1NrmYjXfwWdtCF8XukFjMmflfV6H+27ljlun3kAJfFqpj7rLPMfjFQzYEJOddCZzgON3G59d506yRyx0gMdYf51KlzhZ6zarFsWvvF972IkzYtYQTQIhadlC7cELI7etH5gUI7d20XaH+klnrUWH2l0Ro8rxg== 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=ensjIIB16UD0SymcCH/qXfmysPt/QhIT13TpO3cZlJc=; b=FAHw6+BwNcLjS25kTDLP7if4f4MY3a6srz2iH2biAgHNAurWH9JSLuvDfLQ8S9JnELOgAi8fuFQnbIcjGmLva2A1jUlnNqc9Zz+zV/yXhfapxArUc0N/TSnOWm1ss+Sstj648FkQxO0pmIVHFTKZupZD+sX0yqoToktm7O0CA7U= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3835.eurprd04.prod.outlook.com (52.134.65.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.18; Tue, 24 Sep 2019 06:15:25 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::8958:299c:bc54:2a38]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::8958:299c:bc54:2a38%7]) with mapi id 15.20.2284.023; Tue, 24 Sep 2019 06:15:25 +0000 From: Anson Huang To: Andy Tang , "edubezval@gmail.com" , "rui.zhang@intel.com" CC: "daniel.lezcano@linaro.org" , Leo Li , "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Andy Tang Subject: RE: [PATCH v2] thermal: qoriq: add thermal monitor unit version 2 support Thread-Topic: [PATCH v2] thermal: qoriq: add thermal monitor unit version 2 support Thread-Index: AQHVcof1uTmY1EIPmUy0v9WqxjFj+ac6WafA Date: Tue, 24 Sep 2019 06:15:24 +0000 Message-ID: References: <20190924031640.3159-1-andy.tang@nxp.com> In-Reply-To: <20190924031640.3159-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=anson.huang@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 403fd070-61ec-498e-5e2d-08d740b69691 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3835; x-ms-traffictypediagnostic: DB3PR0402MB3835:|DB3PR0402MB3835: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:989; x-forefront-prvs: 0170DAF08C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(136003)(396003)(366004)(39860400002)(376002)(13464003)(199004)(189003)(66476007)(110136005)(64756008)(5660300002)(33656002)(478600001)(2906002)(86362001)(2501003)(25786009)(14454004)(7736002)(6506007)(476003)(53546011)(66446008)(26005)(102836004)(99286004)(66946007)(186003)(66556008)(3846002)(6116002)(7696005)(76116006)(2201001)(76176011)(9686003)(446003)(229853002)(52536014)(55016002)(486006)(44832011)(74316002)(11346002)(305945005)(6436002)(4326008)(316002)(54906003)(81166006)(66066001)(71190400001)(71200400001)(81156014)(14444005)(256004)(8936002)(8676002)(6246003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3835;H:DB3PR0402MB3916.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: PylU+DSdNOZ+p7ietaA2yOrJD/4Sh+ZdZsnhRcn86a5PS6WeHRt6v9pOwEXyBVbnL8PD25AiTkcD4DkT/U7rk7ipnHhtte4yPrt8E8Xk/aEt3vZ1/6BSVU6duG5mkk/P3z6mS6gvPYRYIaVMFtQDKY7keQV0brd/R+VuTbxlWwtOmjr4yDMjKVGv5kj25ggul7bvgt3jW1QTNUAtkc8dwzIUa/6XFhkIGzsXcB8ApVgOd68Stf8Nx+LiqbHw590zEYehJd3TfbJvSgy3QzpFhxajhAOoowa2s5SjU8Gn3d1cl6XcmIlzh5dJLfh/eC0w/MlRLlmvspBX0/oWMNk5SvKZ6YCzLv2jXQ30Yso5HB/npz0ltFIzIPNRE05OMVIIq0p3JKwH1G09VWtS38j++5Xh4j6wGq4/4DOphuvGVR4= 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: 403fd070-61ec-498e-5e2d-08d740b69691 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Sep 2019 06:15:24.5752 (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: jO292LXoYc83wgzCStJ2yL2LOISyZwHocAHCHNzIM6yiVFEtZvdkLhkQZvgIGXhDrVVX/MGLCTVzJYX3ayMyEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3835 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogWXVhbnRpYW4gVGFuZyA8 YW5keS50YW5nQG54cC5jb20+DQo+IFNlbnQ6IFR1ZXNkYXksIFNlcHRlbWJlciAyNCwgMjAxOSAx MToxNyBBTQ0KPiBUbzogZWR1YmV6dmFsQGdtYWlsLmNvbTsgcnVpLnpoYW5nQGludGVsLmNvbTsg QW5zb24gSHVhbmcNCj4gPGFuc29uLmh1YW5nQG54cC5jb20+DQo+IENjOiBkYW5pZWwubGV6Y2Fu b0BsaW5hcm8ub3JnOyBMZW8gTGkgPGxlb3lhbmcubGlAbnhwLmNvbT47IGxpbnV4LQ0KPiBwbUB2 Z2VyLmtlcm5lbC5vcmc7IGxpbnV4LWtlcm5lbEB2Z2VyLmtlcm5lbC5vcmc7IEFuZHkgVGFuZw0K PiA8YW5keS50YW5nQG54cC5jb20+DQo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