Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp483967yba; Thu, 16 May 2019 04:16:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyYq6s7PK4e75dYFbPhdhR2JMmFOO1PnYSbKek5hQOQtBm87glL+gsBta/8AZ+Z4Yt+Brd X-Received: by 2002:a63:1150:: with SMTP id 16mr49921697pgr.40.1558005373288; Thu, 16 May 2019 04:16:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558005373; cv=none; d=google.com; s=arc-20160816; b=z57xOagLQ1iDKRtMzDE7TA3tfK92jWmF+UMCu0NhafysL0PZ67C5tFX6pBMcw/PzOa 1TFQLa7WPpoaMUqwhtzYvlc4NlTEcRhAW1YKpWh2BHHAWM7rei3L1fBvOUBEv4l1DXeB VxlClEuOeZW+4ZuFwIjfmyffWMzlP6F+Nk5XAMQu7ptK17uia+n9unlYAg91n9dCwOVq NTqZO7cyM51w9ooxJ6BUwLZPsHB9lmRG4jjyw5iH9GFkXvte5GLREOll1OI/ZP5edj0z 4BDp/Tqm2zSY3L+b82QQoXfjH8Gg1ybaIrrHX9C8PcdW4bNsjZTEMFYdoSg2euyQpXBA oo5w== 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=W3ID3lzOTglsQ6RPKDshAWcI1X94VHl+5Xfu51tG3TU=; b=j6Av63tRdO8kaLtmE2CnVdQItRN9tshckHs6Tcz/ZOLXoixLLnX2YrNI93/lIDsDbN b3t5lixsR5AF1lv9PvkHMSS++WrBmhLoOaa/zjzXrUlK73NFfBlSomd43dCv9uB/qKqF MS+4kvKviyJ8KqV/DRI++djFWdbBsclW2gOoHAzcgmXXzjiektg8ofgWLZvieAazAUAF Rx6lA3OgY6/3qrgw97RpG/3WT86/KJm8vDvSiThE81MtEvOfCGDrVQH90K9B3fq+72a2 vh50T8Y5c1nriYwjpkiVJ4TERSlhGAN7D9k+l3ISjQO9Y4O5UnwSwxVjtlJxv+yTXGDE e2JA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b="eEie/PY1"; 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 cc8si4783474plb.325.2019.05.16.04.15.57; Thu, 16 May 2019 04:16:13 -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="eEie/PY1"; 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 S1727024AbfEPLNA (ORCPT + 99 others); Thu, 16 May 2019 07:13:00 -0400 Received: from mail-eopbgr150083.outbound.protection.outlook.com ([40.107.15.83]:22403 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726363AbfEPLNA (ORCPT ); Thu, 16 May 2019 07:13:00 -0400 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=W3ID3lzOTglsQ6RPKDshAWcI1X94VHl+5Xfu51tG3TU=; b=eEie/PY1IGR5Rd0P1VxRPQj5vdzn458i45kJWwjlSqV16dHf7uZkK6K4B5PC+rGo8PbvIa01Th4k+io/B23vkDueOrFWyiga0myMxm2Fi8S/gFd66YUS7EOUc7jQU+CB2EfX+sB6zBPsNjw/AmzHcfrAY49ao/1Imq7WR6ztTlA= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.92.158) by AM0PR04MB4274.eurprd04.prod.outlook.com (52.134.124.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1878.21; Thu, 16 May 2019 11:12:54 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c415:3cab:a042:2e13]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::c415:3cab:a042:2e13%6]) with mapi id 15.20.1900.010; Thu, 16 May 2019 11:12:54 +0000 From: Aisheng Dong To: Anson Huang , "catalin.marinas@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "agross@kernel.org" , "maxime.ripard@bootlin.com" , "olof@lixom.net" , "horms+renesas@verge.net.au" , "jagan@amarulasolutions.com" , "bjorn.andersson@linaro.org" , Leonard Crestez , "marc.w.gonzalez@free.fr" , "dinguyen@kernel.org" , "enric.balletbo@collabora.com" , "l.stach@pengutronix.de" , Abel Vesa , "robh@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: RE: [PATCH V3 1/2] soc: imx: Add SCU SoC info driver support Thread-Topic: [PATCH V3 1/2] soc: imx: Add SCU SoC info driver support Thread-Index: AQHVC5bqk1P5MqRzRU2gqcSUyb18B6Ztk+ug Date: Thu, 16 May 2019 11:12:54 +0000 Message-ID: References: <1557976777-8304-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1557976777-8304-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 005e116c-8d7a-471a-db8e-08d6d9ef717d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:AM0PR04MB4274; x-ms-traffictypediagnostic: AM0PR04MB4274: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0039C6E5C5 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(366004)(376002)(39860400002)(346002)(136003)(189003)(199004)(54094003)(2501003)(8936002)(71200400001)(7416002)(52536014)(66066001)(6506007)(11346002)(6246003)(2201001)(476003)(102836004)(6436002)(110136005)(9686003)(81166006)(81156014)(4326008)(86362001)(74316002)(71190400001)(486006)(53936002)(2906002)(55016002)(68736007)(256004)(66946007)(64756008)(446003)(305945005)(14454004)(7696005)(99286004)(3846002)(25786009)(478600001)(76176011)(33656002)(66446008)(8676002)(66556008)(6116002)(7736002)(44832011)(26005)(5660300002)(316002)(73956011)(66476007)(76116006)(186003)(229853002)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4274;H:AM0PR04MB4211.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: IpRwqpoGLtOOnQ0NyvcrqOD0xkztFs42BBZgp8XBBVmaofh8SZ8+gl1DHxmrjyyKMQ0b3avy5f4DSR2+MlElLgdzpKczQ/Ur45nUoxJ8hPL3xiXdmXGewT0Iw6ywpzlSpJ1XOYZNAja09JCgt4mKGYCQ1v3VACKe8sQmxGCpO8WY27jdftlm04e7NLAA+3sTeBJ2dno6StQAt/gJFlG65e7CIkWaVDUvEnckYs7ZOvc4Su4UFh+NCoyMV0diStbKZwtjalUmOgQqgHe2EnOSp6H5cX3wSJPqBB/2kkzX3o1q0VvnQxw9TVNs8r5UYtysKhBpy8XN3EYQqcL1+lsqZQ2GK5h/CKJ1ugzA6D6UQQV+ztaCgY1FXQCbqp/zt+DkXmz3PzNXuXTatyG0cu7zbuEO7CwGN4wx8+PLPrOqsyc= 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: 005e116c-8d7a-471a-db8e-08d6d9ef717d X-MS-Exchange-CrossTenant-originalarrivaltime: 16 May 2019 11:12:54.2289 (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: AM0PR04MB4274 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBGcm9tOiBBbnNvbiBIdWFuZw0KPiBTZW50OiBUaHVyc2RheSwgTWF5IDE2LCAyMDE5IDExOjI1 IEFNDQo+IA0KPiBBZGQgaS5NWCBTQ1UgU29DIGluZm8gZHJpdmVyIHRvIHN1cHBvcnQgaS5NWDhR WFAgU29DLCBpbnRyb2R1Y2UgZHJpdmVyDQo+IGRlcGVuZGVuY3kgaW50byBLY29uZmlnIGFzIENP TkZJR19JTVhfU0NVIG11c3QgYmUgc2VsZWN0ZWQgdG8gc3VwcG9ydA0KPiBpLk1YIFNDVSBTb0Mg ZHJpdmVyLCBhbHNvIG5lZWQgdG8gdXNlIHBsYXRmb3JtIGRyaXZlciBtb2RlbCB0byBtYWtlIHN1 cmUNCj4gSU1YX1NDVSBkcml2ZXIgaXM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