Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1531864ybm; Thu, 23 May 2019 02:38:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyXH1cIhCy+s7WHYh8uiueHhJqCyJfNwDC+pwKfXsxrejxQWCraMb1N8GjITeTwxnAL9tvw X-Received: by 2002:a17:902:683:: with SMTP id 3mr52223083plh.209.1558604319069; Thu, 23 May 2019 02:38:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558604319; cv=none; d=google.com; s=arc-20160816; b=KAiUY8cdig7S1FRNUgRsPaiOLic7UfIN3C+bkeMPj1pHYkgjMn6BYYezXAlu1KfMDH WIyG23Gq/XSIcmHtTO8sJv7W4lpDD6ehYcEA7v2/g5zJxqg8QNLX7L2VcAJElahmwsER M+SH9t8/wNtiEQROuOG6oFFI6lalpkdiQc0lddvt+nKFE4ZXOvyUQfoXoSsULVi9QkGw e9Pj+IQldlR5KaOdvxCXPW6l5pDQbm2/+wnLBZwSBrvwew4oDl3RLA6torcLSfkyl7qe VuAO6vUyWkvCtscrdl3yAV5SC0vq42EyKuTJRj7kzYvgDvksynGnxrN18e6VskaCuwRB oKuA== 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=AY7pJIbkluEbMt/+VyZhiElfd+4JG5HAdglHhR/+OFc=; b=t6WIhkI3c7lfV4DnvB2joO+ZOyLZk8H0AsTIiug96H3fIFRvZYrrOwMxZHuGt6I2u8 FYP8C6x8HwIerb5B21WbbRUuna5W0p5iRJobsJ+osoap5ggo0l5qRndX7xLSJ4ILZw9r RHrFklQT0eB71o1dJGcQ6naP6812q4rF1O80Hr2hnc/jLdmXLZkAN6I7ERgKyhUFOkNc 5617ZvL7RVAtLW9WbYdtYP/zycmraK50WbBGETOyaCdkw0oAE94xyMZFn7OeC6w1q0cC sVf1SU2j6BTxFwItiEpIWGAGsDb7QqnIbyo7MQkOmeb+MonAwQHVYXKnVcZzruYqRYwe qjcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=aPFoUTnz; 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 s24si25447879pga.515.2019.05.23.02.38.23; Thu, 23 May 2019 02:38:39 -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=aPFoUTnz; 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 S1730363AbfEWJf4 (ORCPT + 99 others); Thu, 23 May 2019 05:35:56 -0400 Received: from mail-eopbgr140057.outbound.protection.outlook.com ([40.107.14.57]:31142 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729836AbfEWJfz (ORCPT ); Thu, 23 May 2019 05:35:55 -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=AY7pJIbkluEbMt/+VyZhiElfd+4JG5HAdglHhR/+OFc=; b=aPFoUTnzFeDWiP5PeiHRsyc7KOruvwHif6Km7mSnEklJ0f5Xq422/+BLyvn7VeT1ntdfYHuKSixbjnQc6g6Wn3zI9BBvFlwIw9Qo+mzzJGJ7RgoVF8pUsvAecqqa6fFtYak7+YCb79zjiKXm+f4mt5YAq+R9SjiK2w5oyD8ZPHc= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3932.eurprd04.prod.outlook.com (52.134.72.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.15; Thu, 23 May 2019 09:35:48 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::5835:e874:bd94:fec]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::5835:e874:bd94:fec%5]) with mapi id 15.20.1922.017; Thu, 23 May 2019 09:35:48 +0000 From: Anson Huang To: Russell King - ARM Linux admin CC: "catalin.marinas@arm.com" , "will.deacon@arm.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , "maxime.ripard@bootlin.com" , "olof@lixom.net" , "agross@kernel.org" , "jagan@amarulasolutions.com" , "bjorn.andersson@linaro.org" , Leonard Crestez , "dinguyen@kernel.org" , "enric.balletbo@collabora.com" , Aisheng Dong , Abel Vesa , "l.stach@pengutronix.de" , "tglx@linutronix.de" , "robh@kernel.org" , "gregkh@linuxfoundation.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx Subject: RE: [PATCH V6 1/2] soc: imx: Add SCU SoC info driver support Thread-Topic: [PATCH V6 1/2] soc: imx: Add SCU SoC info driver support Thread-Index: AQHVESOBOi968fgyqkGLTWjGKVXT0qZ4bDuAgAAF4qA= Date: Thu, 23 May 2019 09:35:48 +0000 Message-ID: References: <1558586911-29309-1-git-send-email-Anson.Huang@nxp.com> <20190523090941.zd4rbvcimgit5lq5@shell.armlinux.org.uk> In-Reply-To: <20190523090941.zd4rbvcimgit5lq5@shell.armlinux.org.uk> 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: 25f8706b-244f-44ad-8b76-08d6df620a0a 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:DB3PR0402MB3932; x-ms-traffictypediagnostic: DB3PR0402MB3932: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 00462943DE x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(376002)(396003)(366004)(136003)(39860400002)(199004)(189003)(13464003)(2906002)(316002)(66476007)(66556008)(64756008)(73956011)(66946007)(76116006)(66446008)(7736002)(26005)(305945005)(6116002)(3846002)(53546011)(6506007)(99286004)(186003)(74316002)(8676002)(76176011)(229853002)(8936002)(81156014)(81166006)(6916009)(7696005)(68736007)(55016002)(6306002)(9686003)(6246003)(44832011)(486006)(7416002)(54906003)(6436002)(446003)(11346002)(476003)(33656002)(5660300002)(478600001)(71200400001)(86362001)(4326008)(71190400001)(45080400002)(52536014)(102836004)(14444005)(53936002)(14454004)(966005)(66066001)(25786009)(256004);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3932;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: ltoM48UUt8e4gK6xnbITEnqt2GioC12SpaHl9h+PNsCqm1mmZgfWtqK2JG6HrDKU5fHaqshKlqlybqBCdmxY3Xpho4odSVO+tB4lkldLkK69tDL+s6Emd6gJUiFCfRkqeePTshxA3YygjsvNBiDGnfmpUmZLSmf5XAJZc+fdJAFv6qZwtq8D5weIbW/AgKkVtMaPnHLv89FaDaFLM6avrNvHepnlWLIeju4aXbftwthaH9pWR1QLIntRsoQdkr1rcwUCbMEDJSr2S6AglZHtaIW3TOMt6Bs82rKbgCj00b2ImFiO4GSkXiUWCs6nuGJlc9FmROwAZoB+FZRZVnZAOeN9nLd2eE/ibDtCe9EHCh/ReOBiciHCT/Q915eZ3zbShSlqulPhmRPwjBTU7ADPWtXUQx9AvW00jtcv9PAxG0g= 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: 25f8706b-244f-44ad-8b76-08d6df620a0a X-MS-Exchange-CrossTenant-originalarrivaltime: 23 May 2019 09:35:48.6107 (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: anson.huang@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3932 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGksIFJ1c3NlbGwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBSdXNz ZWxsIEtpbmcgLSBBUk0gTGludXggYWRtaW4gW21haWx0bzpsaW51eEBhcm1saW51eC5vcmcudWtd DQo+IFNlbnQ6IFRodXJzZGF5LCBNYXkgMjMsIDIwMTkgNToxMCBQTQ0KPiBUbzogQW5zb24gSHVh bmcgPGFuc29uLmh1YW5nQG54cC5jb20+DQo+IENjOiBjYXRhbGluLm1hcmluYXNAYXJtLmNvbTsg d2lsbC5kZWFjb25AYXJ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gICAgICAgICByZXR1cm4g LUVJTlZBTDsNCg0KICAgICAgICAvKiBmb3JtYXQgc29jX2lkIHZhbHVlIHBhc3NlZCBmcm9tIFND VSBmaXJtd2FyZSAqLw0KICAgICAgICB2YWwgPSBpZCAmIDB4MWY7DQotICAgICAgIHNvY19kZXZf YXR0ci0+c29jX2lkID0gdmFsID8ga2FzcHJpbnRmKEdGUF9LRVJORUwsICIweCV4IiwgdmFsKQ0K LSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogInVua25vd24iOw0KKyAgICAgICBzb2Nf ZGV2X2F0dHItPnNvY19pZCA9IGthc3ByaW50ZihHRlBfS0VSTkVMLCAiMHgleCIsIHZhbCk7DQog ICAgICAgIGlmICghc29jX2Rldl9hdHRyLT5zb2NfaWQpDQogICAgICAgICAgICAgICAgcmV0dXJu IC1FTk9NRU07DQoNCiAgICAgICAgLyogZm9ybWF0IHJldmlzaW9uIHZhbHVlIHBhc3NlZCBmcm9t IFNDVSBmaXJtd2FyZSAqLw0KICAgICAgICB2YWwgPSAoaWQgPj4gNSkgJiAweGY7DQogICAgICAg IHZhbCA9ICgoKHZhbCA+PiAyKSArIDEpIDw8IDQpIHwgKHZhbCAmIDB4Myk7DQotICAgICAgIHNv Y19kZXZfYXR0ci0+cmV2aXNpb24gPSB2YWwgPyBrYXNwcmludGYoR0ZQX0tFUk5FTCwNCi0gICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiJWQuJWQiLA0KLSAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICh2YWwgPj4gNCkg JiAweGYsDQotICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg dmFsICYgMHhmKSA6ICJ1bmtub3duIjsNCisgICAgICAgc29jX2Rldl9hdHRyLT5yZXZpc2lvbiA9 IGthc3ByaW50ZihHRlBfS0VSTkVMLA0KKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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