Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp144251ybk; Tue, 19 May 2020 18:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzodquDq1JiJPeimELx2E/vWqobCtLmg0F9CIOrKB3Yw7PpshLnltL+r//Ds/fmBb03pKAX X-Received: by 2002:aa7:dd12:: with SMTP id i18mr1203193edv.133.1589936448103; Tue, 19 May 2020 18:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589936448; cv=none; d=google.com; s=arc-20160816; b=gu7A/htdJyrqKgorhvLuY+npr/X+8eK8+vlPi4P9bOUXvq4lNj0DiWBBx7aPNlafr6 8Q5n+3fBUazK6toC7nMQE1gmj2o1kkNCNrzG0f3NyI4qXKU/cyxyEExvfXfFN81WTA1x QilXzrrg614mtVyfMyLEoM3wESKcLvUBMLlAqvPF66jVW2XdYaXKy/p5pfmCqTJhsu8J T3m5ky1Jm5quEFEwXdn/xSt0h3JOaLVjOhiRG/8/fmYavu+Z7B983jELx6zpEfV2X2Kg CJgDThoHSuD2Ro/mCt7aDBSE9m5fY1qDQTZj6rNDxBgexcaTtaWBylXUl/G/ZUvuQjQX rHiA== 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=kR+vttpKpGIlIVMOkB/lFPdTKs3EZA4pkaRY0S4vKNI=; b=i7WIBiwOJXqteTxSoixzjkFPQiLvLnZ17vQ/71vrwv32EmjD2iAxRrZC0Ce1cZUNhb HM4U81y+8Gais65sHFnYAa/eomMAvW5AKHDfk567ctRUAZ/9CcT43L5D9pHMqW1cPQWb jQu7QqJp/bnps9S8Xz5QYPjv/KjSU/JzWOiO48tfwV0xbZNbSBAclsMoxbhMCqp28L/v t5dixyLjgo9LUAK1wkxDrwhWLnLtQd2WS22IhaDPuxgTl0/uBicaB79XHHpRnPSTBgIi pcoHqWovlxXS5mR1Qtxe1wifk75DIrUTJkW4kSbHPJHErt0OGb7Xu5+VjUw17sZUTzPc Ebpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Liziulel; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id rh10si846259ejb.678.2020.05.19.18.00.24; Tue, 19 May 2020 18:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Liziulel; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726432AbgETA4y (ORCPT + 99 others); Tue, 19 May 2020 20:56:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:57756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726178AbgETA4y (ORCPT ); Tue, 19 May 2020 20:56:54 -0400 Received: from dragon (unknown [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 5814B20829; Wed, 20 May 2020 00:56:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589936213; bh=Hy5gHGvZRPg1njiDXkxKfJSxprDz+YgRy8ChFWoLAcg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Liziulelwl882dZ/YkmzXxHxu0tMrl/admwNEYNpZ93OoTC1Ob9wzVzvsffrkYzAS 3IHYeFUCRSiKngOHyuu/TBs2KsmN+TvAf5ktRitDbjPvzDNk/4eLVh8v6YtuxchYN+ DKuTcK+YeD36oafP8DQkvoMY1dwq6+8OX2FsYE1U= Date: Wed, 20 May 2020 08:56:40 +0800 From: Shawn Guo To: peng.fan@nxp.com Cc: s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, allison@lohutok.net, info@metux.net, Anson.Huang@nxp.com, leonard.crestez@nxp.com, git@andred.net, abel.vesa@nxp.com, ard.biesheuvel@linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 0/3] ARM: imx: move cpu code to drivers/soc/imx Message-ID: <20200520005638.GA11739@dragon> References: <1588151843-2133-1-git-send-email-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1588151843-2133-1-git-send-email-peng.fan@nxp.com> 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 Wed, Apr 29, 2020 at 05:17:20PM +0800, peng.fan@nxp.com wrote: > From: Peng Fan > > V2: > Keep i.MX1/2/3/5 cpu type for completness > Correct return value in patch 1/3 > use CONFIG_ARM to guard compile soc-imx.c in patch 3/3 > > V1: > https://patchwork.kernel.org/cover/11433689/ > RFC version : > https://patchwork.kernel.org/cover/11336433/ > > Nothing changed in v1, just rename to formal patches > > Shawn, > The original concern has been eliminated in RFC discussion, > so this patchset is ready to be in next. > Thanks. > > Follow i.MX8, move the soc device register code to drivers/soc/imx > to simplify arch/arm/mach-imx/cpu.c > > I planned to use similar logic as soc-imx8m.c to restructure soc-imx.c > and merged the two files into one. But not sure, so still keep > the logic in cpu.c. > > There is one change is the platform devices are not under > /sys/devices/soc0 after patch 1/4. Actually ARM64 platform > devices are not under /sys/devices/soc0, such as i.MX8/8M. > So it should not hurt to let the platform devices under platform dir. > > Peng Fan (3): > ARM: imx: use device_initcall for imx_soc_device_init > ARM: imx: move cpu definitions into a header > soc: imx: move cpu code to drivers/soc/imx Applied all, thanks.