Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp918713imu; Thu, 13 Dec 2018 06:38:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/VJHzQDW7MLgIixDhJ6quXaEcFMhe8RX06Bp80Uq/A+5PqDWRTjVF3rhVR65dM5zqT1oqkQ X-Received: by 2002:a17:902:b592:: with SMTP id a18mr23862887pls.293.1544711890939; Thu, 13 Dec 2018 06:38:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544711890; cv=none; d=google.com; s=arc-20160816; b=wCvGYeX5sYFW5itk78krRBmdqf1DjOhFuABexRdAsTj6XHbz5/rZQp/shax96fHVqo 0jmyeg/Bdq6LmFrLqiXxDwvt4mL9eZjLqbDZ0F3nIPhLXHd0tGhCq/gVIki+3OmNAKne 3rl3NVnIweLENECEyNry+cwh/kA9lf7RAWvW51meIN1RoLndf5KCg+z5+izNeKPJL7ZR NoXJDnwHir3vBahzRyc4MzdvejJ4Yot5Fnd556m1H319vmlyftZ/HsdabocL5eYN4/w4 25qxjfrBE90ZWtxlZKOkDtzCVMZRp5hJKxCiDiWaIj4IH8W8R0kOooGkzkyY99vxrNLv xhvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=T80HTfeTQ8B4Ukk0oqG/yltPdNYTxP3EsX8oEFV0BZs=; b=EBgMPyoDzRLOlXjSG7rM5Sb6cwvN4HPJorzxtuaja+eeHyG/U6P3b5q4XnYvG6Vta0 JMrJD5euLnmNRH8WYxP8diH48qh0RMjG1PsRDrriEn+3AfWtThH7giPY7J1iIon+5UBV NNqW/kkApMaCqGnx3q9zpdesgJ8CEOJq/6Gsd9KEjEUS3DXY5pA1Lbl2RUncIdi5kJ4+ aEfUGJk6LEfcKzJ5oy5NWAGSAUz+HveHbx489NvClIVIzeG122VThg5WEJNA4NdtArbc frh+L3sEq1QTOesYYdQ06/uSlLFR2w/ohPvb7tiZPeACMn/GlWsGct8rJYvg/z5xtcHC eGHw== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o89si1754451pfk.223.2018.12.13.06.37.56; Thu, 13 Dec 2018 06:38:10 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728930AbeLMOfh (ORCPT + 99 others); Thu, 13 Dec 2018 09:35:37 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:42821 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbeLMOfg (ORCPT ); Thu, 13 Dec 2018 09:35:36 -0500 Received: from kresse.hi.pengutronix.de ([2001:67c:670:100:1d::2a]) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1gXS5I-00049s-Q5; Thu, 13 Dec 2018 15:35:28 +0100 Message-ID: <1544711727.3137.32.camel@pengutronix.de> Subject: Re: [PATCH 1/3] arm64: Remove CONFIG_SOC_IMX8MQ and use ARCH_MXC instead From: Lucas Stach To: Abel Vesa , Shawn Guo , Stephen Boyd , Aisheng Dong Cc: "linux-clk@vger.kernel.org" , Pengutronix Kernel Team , Olof Johansson , "linux-arm-kernel@lists.infradead.org" , Linux Kernel Mailing List , dl-linux-imx , Rob Herring , Will Deacon , Fabio Estevam Date: Thu, 13 Dec 2018 15:35:27 +0100 In-Reply-To: <1544707047-4417-2-git-send-email-abel.vesa@nxp.com> References: <1544707047-4417-1-git-send-email-abel.vesa@nxp.com> <1544707047-4417-2-git-send-email-abel.vesa@nxp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::2a X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Donnerstag, den 13.12.2018, 13:17 +0000 schrieb Abel Vesa: > To keep aligned with arm64, remove the unnecessary SOC_IMX8MQ and use > ARCH_MXC instead. > > Signed-off-by: Abel Vesa > --- >  arch/arm64/Kconfig.platforms           | 8 -------- >  arch/arm64/boot/dts/freescale/Makefile | 2 +- >  drivers/clk/imx/Makefile               | 3 ++- >  drivers/phy/freescale/Kconfig          | 2 +- >  drivers/pinctrl/freescale/Kconfig      | 2 +- >  drivers/soc/imx/Kconfig                | 2 +- >  6 files changed, 6 insertions(+), 13 deletions(-) > > diff --git a/arch/arm64/Kconfig.platforms > b/arch/arm64/Kconfig.platforms > index 7e1545a..318dbb9 100644 > --- a/arch/arm64/Kconfig.platforms > +++ b/arch/arm64/Kconfig.platforms > @@ -148,14 +148,6 @@ config ARCH_MXC >     This enables support for the ARMv8 based SoCs in the >     NXP i.MX family. >   > -config SOC_IMX8MQ > - bool "i.MX8MQ support" > - depends on ARCH_MXC > - select ARM64_ERRATUM_843419 > - select ARM64_ERRATUM_845719 > - help > -   This enables support for the i.MX8MQ SoC. > - NACK on this one. Having a single place where stuff that is absolutely critical for proper SoC operation can be selected is very useful and avoids hard to debug issues due to slightly wrong configs in the long run. Regards, Lucas >  config ARCH_QCOM >   bool "Qualcomm Platforms" >   select GPIOLIB > diff --git a/arch/arm64/boot/dts/freescale/Makefile > b/arch/arm64/boot/dts/freescale/Makefile > index 0001361..f9be242 100644 > --- a/arch/arm64/boot/dts/freescale/Makefile > +++ b/arch/arm64/boot/dts/freescale/Makefile > @@ -19,4 +19,4 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a- > rdb.dtb >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-qds.dtb >  dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-lx2160a-rdb.dtb >   > -dtb-$(CONFIG_SOC_IMX8MQ) += imx8mq-evk.dtb > +dtb-$(CONFIG_ARCH_MXC) += imx8mq-evk.dtb > diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile > index 5c0b11e..62a1882 100644 > --- a/drivers/clk/imx/Makefile > +++ b/drivers/clk/imx/Makefile > @@ -34,5 +34,6 @@ obj-$(CONFIG_SOC_IMX6SX) += clk-imx6sx.o >  obj-$(CONFIG_SOC_IMX6UL) += clk-imx6ul.o >  obj-$(CONFIG_SOC_IMX7D)  += clk-imx7d.o >  obj-$(CONFIG_SOC_IMX7ULP) += clk-imx7ulp.o > -obj-$(CONFIG_SOC_IMX8MQ) += clk-imx8mq.o >  obj-$(CONFIG_SOC_VF610)  += clk-vf610.o > + > +obj-$(CONFIG_ARCH_MXC) += clk-imx8mq.o > diff --git a/drivers/phy/freescale/Kconfig > b/drivers/phy/freescale/Kconfig > index f050bd4..923c0ef 100644 > --- a/drivers/phy/freescale/Kconfig > +++ b/drivers/phy/freescale/Kconfig > @@ -2,4 +2,4 @@ config PHY_FSL_IMX8MQ_USB >   tristate "Freescale i.MX8M USB3 PHY" >   depends on OF && HAS_IOMEM >   select GENERIC_PHY > - default SOC_IMX8MQ > + default ARCH_MXC > diff --git a/drivers/pinctrl/freescale/Kconfig > b/drivers/pinctrl/freescale/Kconfig > index 2d6db43..9874a16 100644 > --- a/drivers/pinctrl/freescale/Kconfig > +++ b/drivers/pinctrl/freescale/Kconfig > @@ -123,7 +123,7 @@ config PINCTRL_IMX7ULP >   >  config PINCTRL_IMX8MQ >   bool "IMX8MQ pinctrl driver" > - depends on SOC_IMX8MQ > + depends on ARCH_MXC >   select PINCTRL_IMX >   help >     Say Y here to enable the imx8mq pinctrl driver > diff --git a/drivers/soc/imx/Kconfig b/drivers/soc/imx/Kconfig > index 2112d18..7ffbb6b 100644 > --- a/drivers/soc/imx/Kconfig > +++ b/drivers/soc/imx/Kconfig > @@ -2,7 +2,7 @@ menu "i.MX SoC drivers" >   >  config IMX_GPCV2_PM_DOMAINS >   bool "i.MX GPCv2 PM domains" > - depends on SOC_IMX7D || SOC_IMX8MQ || (COMPILE_TEST && OF) > + depends on SOC_IMX7D || ARCH_MXC || (COMPILE_TEST && OF) >   depends on PM >   select PM_GENERIC_DOMAINS >   default y if SOC_IMX7D