Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp172937ybv; Wed, 12 Feb 2020 21:48:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwvQIp6AE3B9fkK1LTUKPDUBrKFWwZKIWUsIbz7uUWYxuleSv+KF1vr7YIFWO729Fx6B3Hx X-Received: by 2002:a05:6830:2361:: with SMTP id r1mr11665333oth.88.1581572888087; Wed, 12 Feb 2020 21:48:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581572888; cv=pass; d=google.com; s=arc-20160816; b=BKrzIAEASyDIHx0ICHzQGVhrIBoNvD8k/Kee4hWmtD7DHtjM31H8yJTFNAzZNW6Qo+ iRkFQ4dlD4x3wig0cac1WM3uvs0LBEL8/GPiEq/dD0FgwJRhhoe9iB4kHBpXf4ftZOdH UUfoKoc/J8kjDzH2VbxCVPX20V4LrG7fdHZTJv1FNOZPyO4qNKf08w1F69JsaBatnDv/ p4BVbZyN/7g1dfdY+wRHfRBsjuPSS1t56E9EgcVMwl7FxY5ku9E4kyoJKv8XPbOrQlrz 9swyZ9Jf1vEfGBRU9KYWijSJ89fjYVV1L3Zrm7V1vOpTEJbtFAAo+mEuwE889QSVh7BT cY+Q== 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=+94hQSTQH7hkERSjsDb3B1nd2jylc7LRPIUmdcMFsHg=; b=rdRBuyVdbG86t8dL4Q7uFNq//OkeOorutlzZpmRbSdlJxWscCuHiAnPyh2KYnU8aWD Aif/xomG+uxfL0QJP21tjUhv2OD1M4IHLXhajTBBt2/4kfEkDqdZLM4NM9AjaFBhGVOn m6CEnq4yjOeuuP6pH99pj0LifMdMBZaWNDinypJpG1GtfHiAr2vzX6LXrB6bR9bX6YLz g7Yrq787UCCc6RS69Yg/p9EZe/Nwg5+n/WMPIbPjEJpdZbvnLupd/n4VOzzRlbvTAdfE +YxZVkK6i9RZFT2YLezwXOIUDDED00ksSz2ySjqKJqwCO5j+LJa/nMwbJSsuUDyY0q28 +9jQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Ycy2XHJ3; 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 n20si666183oig.53.2020.02.12.21.47.54; Wed, 12 Feb 2020 21:48:08 -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=selector2 header.b=Ycy2XHJ3; 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 S1727123AbgBMFrp (ORCPT + 99 others); Thu, 13 Feb 2020 00:47:45 -0500 Received: from mail-am6eur05on2081.outbound.protection.outlook.com ([40.107.22.81]:53184 "EHLO EUR05-AM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725773AbgBMFro (ORCPT ); Thu, 13 Feb 2020 00:47:44 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lXQ188hqPajdKeMpGG38RUTX502ugH2uLdXY5S05m1/0E2eXxaSZBlJnkMkjkHBeG3cI4CrRtwlglNNNTGl88sL7rE6OI4YsFdTd6p4TRrWdtVtwQtF9c3esryxwWGPbDDylemauAwXyQhD6HIMHpCZR2iblHOS2stU8PfgccziDfMccJsAffy4TFvccWEJqJSJWlM0Ah5yo2qafY72XxXcHLq5NlLMEcdwQxKWDTh9Vvl/kyPRbPTLmDDkEuiLmNssdrpjFWYJh4BTriMovwp/pCnrRKB9Wvh9wlBhUJIVemH6dvqAY7xLLsDoFJmNo07VGkGZzp7wezJEw3Srk0A== 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=+94hQSTQH7hkERSjsDb3B1nd2jylc7LRPIUmdcMFsHg=; b=XY3g29h7FZWcBneHapkQiD34OlT3byjKtypxbnakIrncdJGtV7AnyK656h+VZlseFOz2VdF/rVZoAJvdB/XxbKLVQu4KkRqxpmzyZNho7GaLY5+/e1xOfv9eni/MffyvBMJB4FNk5swCknsO5E83h30xHz6Eua/W7UXp736CYhJgfIj/TmqX3OIFrighWDazSXqHJZFCkneQ1oWMNUEd63Az2/v1eEYhyyUBsuCCdIoGNKy+CUKm8dn1XzCWBF7LzQ4/ccCjPmhy6NTCKPeGacxRon896RP/UrW7GFadjRt1tvCwYcS2MDPZVCfxpqENmi01PteDRYAc2dza/yteTQ== 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=+94hQSTQH7hkERSjsDb3B1nd2jylc7LRPIUmdcMFsHg=; b=Ycy2XHJ3ysLjtkJ7+Uoqi/FbU/s3XF3FutW3pG63tz5XZpLr5UB7NfGKTuXS+fGT20MksPbXSj1JnCGgB7n6FkaW0AVHQW4FaupUu/SVBnNbhH2fxsTx8r46If10YJ2womv7k85S9fiPZf7nVLRYWd9XFKyr9Zrv9pazvTvX10k= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB7059.eurprd04.prod.outlook.com (10.186.128.78) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.23; Thu, 13 Feb 2020 05:47:41 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422%3]) with mapi id 15.20.2729.024; Thu, 13 Feb 2020 05:47:41 +0000 From: Peng Fan To: Shawn Guo CC: Jacky Bai , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "allison@lohutok.net" , "info@metux.net" , Anson Huang , Leonard Crestez , "git@andred.net" , Abel Vesa , "ard.biesheuvel@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [RFC 1/4] ARM: imx: use device_initcall for imx_soc_device_init Thread-Topic: [RFC 1/4] ARM: imx: use device_initcall for imx_soc_device_init Thread-Index: AQHVzFB5yGe49vkt3U6MybEMHs/GuKfuHFMAgABnHtCAKkUKgIAAAEXQ Date: Thu, 13 Feb 2020 05:47:41 +0000 Message-ID: References: <1579167145-1480-1-git-send-email-peng.fan@nxp.com> <1579167145-1480-2-git-send-email-peng.fan@nxp.com> <20200213054344.GM11096@dragon> In-Reply-To: <20200213054344.GM11096@dragon> 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=peng.fan@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: bfd9e836-20df-4179-5b25-08d7b0483d87 x-ms-traffictypediagnostic: AM0PR04MB7059:|AM0PR04MB7059: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 031257FE13 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(396003)(39860400002)(376002)(346002)(366004)(199004)(189003)(7416002)(478600001)(55016002)(9686003)(8936002)(6506007)(316002)(4326008)(76116006)(8676002)(66556008)(66476007)(66946007)(66446008)(64756008)(54906003)(186003)(6916009)(5660300002)(81166006)(81156014)(2906002)(33656002)(71200400001)(7696005)(44832011)(86362001)(52536014)(26005);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB7059;H:AM0PR04MB4481.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: BCL:0; x-microsoft-antispam-message-info: iNWSFcwMBFcwXZNiIqDE2BGl+9wi2gnccfzk4ChwAY3IL78u4VxVqnY35mlEVpK28qo+lkqkMzI5xvYvi61Be0+uaaXLhXzobHusPN4VDctZmMxQ0FRN6lmWOIue1ZxwwBNRt0cEFlw+WoOxyduzFW5ldT3LpSf3YVqMzp6gPLNffuz71B/RI2pVGiT3M7311+SLWfv9p4WCo+J6znZlGkkZ68EFdMiuidNmY0O7lb/u7uy8pj8CdZ/+F3hMeWME6dlz8gdWuDahiYZ6vYpMF6NCXaFHwACTSvFAtVFONhryoYi8upI3rRjI1tFhABx4Jrt8vDlGwshkEMBW1VKnjYBKpyUmr66RMgUU31doePeaOaAnc0H3HfxdQcreKNkWfw8qSg7C9P3Gm9RwFzYO67JBCSZ62FXHRL9uzVUVQ8E2yBTEoZlMtcVUHMITgT/c x-ms-exchange-antispam-messagedata: s0LmqOBfSCu/tsPof4TIxgYKgAnvugV2gIVoH1XQjYVOEljwDP3pVxcRToG3kEvQo/+v/3be86tBfFNJRNgILEp4qc/4ic6YZ7j0ukPvpb6o6izpojkI3aPvLMrrsKryJOA+21xDmzjCvbiYiiZ/FQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfd9e836-20df-4179-5b25-08d7b0483d87 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2020 05:47:41.2059 (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: Th4zP8pZJEGGazaKfY3WYttRLYCb829KA7ThSzVK1Nis+eBCXXhLu67/YI7eD7i8TDBqxQTWhsu4io31rgOVaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7059 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [RFC 1/4] ARM: imx: use device_initcall for imx_soc_device_i= nit >=20 > On Fri, Jan 17, 2020 at 08:15:54AM +0000, Peng Fan wrote: > > > > Subject: [RFC 1/4] ARM: imx: use device_initcall for > > > > imx_soc_device_init > > > > > > > > From: Peng Fan > > > > > > > > This is preparation to move imx_soc_device_init to > > > > drivers/soc/imx/ > > > > > > > > There is no reason to must put dt devices under /sys/devices/soc0, > > > > they could also be under /sys/devices/platform, so we could pass > > > > NULL as parent when calling of_platform_default_populate. > > > > > > > > > > This change will impact various internal test case & userspace lib, I= think. > > > Need to ask test team & other developer to double check the impact. > > > > /sys/devices/soc0 is still there, the patchset only moves the platform > > devices which under /sys/devices/soc0 to /sys/devices/platform >=20 > Jacky's concern still stands, as there are many user spaces which will be > broken and need update. The soc device itself still under /sys/devices/soc0, the soc_id/revision st= ill there. It is just the platform devices moved to /sys/devices/platform. When I confirm with Jacky before, his concern is soc_id/revision will be moved. But this is not true, they are still there as before. >=20 > > In this way, we aligned with ARM64. And simplify arch code by moving > > the code to drivers/soc/imx. In future, considering more cleanup, we > > could merge the code to soc-imx8.c, since they share similar silicon > > rev ocotp logic. >=20 > Though this is a good thing from maintenance point of view, we do not wan= t > to break user spaces. Actually not break user spaces, since this is RFC, I not expect this be mer= ged. If you agree, I could post normal V1 patchset. Thanks, Peng. >=20 > Shawn