Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp171212ybv; Wed, 12 Feb 2020 21:45:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxs+tpWLTmYX3peL+D1ZF7gIHX8fio59UwgY4uKb06kku96YVlxE+EgZnSnq85qhXqOsm0O X-Received: by 2002:a54:440e:: with SMTP id k14mr1784249oiw.160.1581572745420; Wed, 12 Feb 2020 21:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581572745; cv=none; d=google.com; s=arc-20160816; b=InYXQMvsf0ORGabF6Vd6mhkh2ByahZw8YrZMz6MB/cRdREqU5/wjUOTKxwzLwxN/28 uLjBVOWQUjFqfBmoWiu1rGKLnTgOEquQSFNODTAK8F9Quf74Qwuurw9rqJ2twzE1hiZJ gaa68skvh4autusIZEjTbzhy7J4/3333CrYBBkp9TLEwr+eIBDf4MyEpLMwMHA7qGLEK k3CoD9XGH+2SSiH8SrX+bOUNovqa7ZW5BZfLKTXD4A8aCASa4sAnbswSY+6gUOCI26Sz 7n/lCeV+nQoBxnd+rw6FKgSal6G/AZy6uQsezRmAXYjyjP6GSYkM+87bTQSLuFFC9FaH ahMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PWyZaPI9nAOtONqLPaCDciya7iaWXrElpsMMvAefcsw=; b=mtqwyDAAEQkH5ovfDbL2WwGnsdgAEPPCzT9/cmoa6U/r3YJ3bs+gwJLENf+bWmQvsb k3UOA3PlEHzXIEtp7aciRl7gPtd53FxuNSvu5skGg8KaLSiWrGh6E0OKrNpI98eEyd4H tuGliYl2AZkKWf6gb5XvrHgob1gxBq4ULgy02LpJ2sTFZj/ji362850Gr1gbP20fs5d4 uKmb+w1xr2QR7l+TSWoKS35MUGvtrnG4juOdGbN5SBJe9xuyO6wR2nv1WrAbe6ixeNxM WGtP5ZN/90s08Wmbt6zonRCMLvGymaRq5f4d6c9OE8ELU9ricASYMkrMbnA73b8hcNXf 45lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RMT4njs9; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22si636061oij.35.2020.02.12.21.45.32; Wed, 12 Feb 2020 21:45:45 -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=@kernel.org header.s=default header.b=RMT4njs9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729474AbgBMFny (ORCPT + 99 others); Thu, 13 Feb 2020 00:43:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:57422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbgBMFnx (ORCPT ); Thu, 13 Feb 2020 00:43:53 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5CEC220873; Thu, 13 Feb 2020 05:43:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581572633; bh=4syaKUKu77FngS2/xeaFk/gtszZv6o9gBJ+A5aYg8KU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RMT4njs9CqOEjaxrgfxN4wrm4Uhh6yv/5opMDMKEcFVMDRrz2yQbvzd3Cwfe7WGL5 2PHPd0Q7VIzWPMHxRDU5SmLfuRPft18+xurNzc1Kn+7wln6WeOQ7+Bmb/yRt9d/WyK PNYEc8J6a3Kya+FiJPg82yFvjKLc1YHh/CuL2jkY= Date: Thu, 13 Feb 2020 13:43:45 +0800 From: Shawn Guo To: Peng Fan 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 Message-ID: <20200213054344.GM11096@dragon> References: <1579167145-1480-1-git-send-email-peng.fan@nxp.com> <1579167145-1480-2-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Jacky's concern still stands, as there are many user spaces which will be broken and need update. > 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. Though this is a good thing from maintenance point of view, we do not want to break user spaces. Shawn