Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp179622ybv; Wed, 12 Feb 2020 21:57:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyGNNc1Hi/U+i4OY4pNnt/If/yFRU5V9zz+B/2LXuoeMZGdT3k3oRTbxrssAlI2E50UiCwp X-Received: by 2002:a05:6830:1e64:: with SMTP id m4mr12692329otr.244.1581573436532; Wed, 12 Feb 2020 21:57:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581573436; cv=none; d=google.com; s=arc-20160816; b=kBn2sWST/zKcDT/6nt5QC39/fOFDL1vh2gv5YVA7PjTEL+NYRrRvseZckTh5dT/uT0 N6FKsNgngn6RrCrkcWDAA0DU/363xlrdj+VC9+vIt38X+2oUMgktjuTLvkQekLchzSZt QgmOrhHJ5HFXZIeJv8VDVsYcqT5UgNY1c3FdcAAW6Msffoc31lVd3tWuaJj0Cpbv5Y2I JgNjXpjEUasQW0R9hgST6rlvIQ3zXSTDjkPqO6baUzaJOuRlJbXnnM7jQQ61ZHKVHzqF Ng7IVVPM/Z72CQx24Uu9SiBEgOrvvHjMPSrIzOxGGtsBmPTtyoRrpmzLJOpWXsnWw24t Czkw== 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=gFsfc45JdVl/ViGlY5RRsp5z/xWU9+s5DyClGmFVNuo=; b=M7AJ69A67E++0ts7l0eGlxUC/zEwyvPGyQl/IzYD1mKy4b6JT5VcIRkxyP9UeHlROg IYcWCwC+RDbMIFqORAasvfZcirYIAtTty7UBWGAW/8nwTcY0zc7pvBP4iMXDrtImggvV by+PAMn81ICBhNltkOidBOB33zBAPcZAMJ0C8piTJWB2vDFfs4G3EcXtDZq3nGZVVOP2 TM8Pq6fmcHQioK3E+9EklApTvFs4PpBh5uFgP5F/TXC59NwJGsHR55nOQg5wuPQI+QPP b8Kq4nfgaIrAvP5o+Y38Q9cdaG2ZYno3Yyhak0QQfd/n7VrTIdOlafEQIhLuLwYl2Gw/ Wc3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LMIw2GOx; 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 x26si622505otk.325.2020.02.12.21.57.03; Wed, 12 Feb 2020 21:57:16 -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=LMIw2GOx; 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 S1729714AbgBMFzl (ORCPT + 99 others); Thu, 13 Feb 2020 00:55:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:59734 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726368AbgBMFzk (ORCPT ); Thu, 13 Feb 2020 00:55:40 -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 52F2E21734; Thu, 13 Feb 2020 05:55:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581573340; bh=oZ9NJ9UTROJIGFfOVsLmAcHJvG9pvWM/bv++TCCy3jU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LMIw2GOxI3U9lWOZpw7HxZ3wNRZBsRdvXa9/MZ3X4jk0NYycb5YQw05av1gUcosNL kr1aUKrJidbaVsj8Jxy63uipawGGazrbaodc+uGUKglcP+m8WIsOWsY3r4vnZkXFTg 8Se2hzuMy23llWJ3M9COociqKPGHdVCZMwVbHh50= Date: Thu, 13 Feb 2020 13:55:33 +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: <20200213055532.GN11096@dragon> References: <1579167145-1480-1-git-send-email-peng.fan@nxp.com> <1579167145-1480-2-git-send-email-peng.fan@nxp.com> <20200213054344.GM11096@dragon> 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 Thu, Feb 13, 2020 at 05:47:41AM +0000, Peng Fan wrote: > > Subject: Re: [RFC 1/4] ARM: imx: use device_initcall for imx_soc_device_init > > > > 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. > > The soc device itself still under /sys/devices/soc0, the soc_id/revision still 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. > > > > > > 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. > > Actually not break user spaces, since this is RFC, I not expect this be merged. > If you agree, I could post normal V1 patchset. Okay. You send formal patches, and we get them into linux-next to see if people will complain any breakage. Shawn