Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp857719ybx; Thu, 31 Oct 2019 01:55:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8oWREK/r18R2XAJtzGS7gYoaAUkrv8b9tcHs80xz0nHLsooJZHdZ1Lsz98g0omlenWsxz X-Received: by 2002:a50:91f6:: with SMTP id h51mr4511767eda.99.1572512145139; Thu, 31 Oct 2019 01:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572512145; cv=none; d=google.com; s=arc-20160816; b=CaiyB8SrNm5mI0KuypAS6eynGUw5+iC7ykfktCFnryJf/1OUfwCVpLJ0KvhPTKf7rT pIhb/3AdCamyfMWvY/q8V76dGQRVhzxTUSghLTpL7I69fKN4n/paynYGJhNpCEuxW9qN YtWag4fyOUy3gS7tkU8Bjiy+FxIgBgWPBK1/STV6VPOUvhPjmUYZlEgzUHX+o0Dsfmm7 yBAMmWFZfY0+17fUFVNRXxEueVtXXGTT0CL/NxGF18j0+pM+Nd/FWM4HMYgfZVHA52uK CptBF1iZnT0RmPi0LxI9TJGqgCD28YYZ2TWRBI/HWCncTrQiGSxf3n95SC7AzSBKZOiM Qt3A== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=iE0E9qmBh/Kk/nCAMXTzUlVjlzGWS+li8vNPz6Cuxac=; b=JdcdNBSMTuH3hP3AQ9kOCPCDA3czl0QSB8Hxgvw+sMjd0vMEbIlpB0Yz0zVRZPJZ5O 7YuAwxsxuIKpqjXKq/5BJOiunQXkypH8ULuohO6MRpvjjL90HxQeDbEGT8sZoDNK9Acv xXqUm2TbeK1fTWURPwMp5+sBgLm4edQa6ji1O7RS7ZcbPIEy2AEEm5zyqfQoj2PU+aB+ 8wQfII+pK+vRY3a0y9k0YNNN8/LI5XV7le9zyWO5606wMbRaN+5rud5FeN5gB7YEEWiq 5ScDovXZcIa9hmedxashbN05dD0sYAo0b/h+NUJPgi7faQfgo9LYk+X+2djSQAu8MgIO 0dTA== 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 g6si4219267edk.210.2019.10.31.01.55.20; Thu, 31 Oct 2019 01:55:45 -0700 (PDT) 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 S1727213AbfJaIxg (ORCPT + 99 others); Thu, 31 Oct 2019 04:53:36 -0400 Received: from shell.v3.sk ([90.176.6.54]:46579 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbfJaIxg (ORCPT ); Thu, 31 Oct 2019 04:53:36 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id E9CA8510EE; Thu, 31 Oct 2019 09:53:33 +0100 (CET) Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id fJbrf0t7ts4K; Thu, 31 Oct 2019 09:53:27 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id BBC445110B; Thu, 31 Oct 2019 09:53:27 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.v3.sk Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gNDH4ZZFNXpJ; Thu, 31 Oct 2019 09:53:27 +0100 (CET) Received: from belphegor (nat-pool-brq-t.redhat.com [213.175.37.10]) by zimbra.v3.sk (Postfix) with ESMTPSA id DC4F0510EE; Thu, 31 Oct 2019 09:53:26 +0100 (CET) Message-ID: <8f1b6585e671b76120f0752b83fbe60c4c01d334.camel@v3.sk> Subject: Re: [PATCH 46/46] ARM: pxa: move plat-pxa to drivers/soc/ From: Lubomir Rintel To: Arnd Bergmann , Daniel Mack , Haojian Zhuang , Robert Jarzmik Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij Date: Thu, 31 Oct 2019 09:53:26 +0100 In-Reply-To: <20191018154201.1276638-46-arnd@arndb.de> References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-46-arnd@arndb.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.1 (3.34.1-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-10-18 at 17:42 +0200, Arnd Bergmann wrote: > There are two drivers in arch/arm/plat-pxa: mfp and ssp. Both > of them should ideally not be needed at all, as there are > proper subsystems to replace them. > > OTOH, they are self-contained and can simply be normal > SoC drivers, so move them over there to eliminate one more > of the plat-* directories. > > Cc: Lubomir Rintel > Signed-off-by: Arnd Bergmann Acked-by: Lubomir Rintel (mach-mmp) > --- > arch/arm/Kconfig | 3 --- > arch/arm/Makefile | 1 - > arch/arm/mach-mmp/mfp.h | 2 +- > arch/arm/mach-pxa/include/mach/mfp.h | 2 +- > arch/arm/mach-pxa/mfp-pxa2xx.h | 2 +- > arch/arm/mach-pxa/mfp-pxa3xx.h | 2 +- > drivers/soc/Kconfig | 1 + > drivers/soc/Makefile | 1 + > {arch/arm/plat-pxa => drivers/soc/pxa}/Kconfig | 5 ++--- > {arch/arm/plat-pxa => drivers/soc/pxa}/Makefile | 4 ---- > {arch/arm/plat-pxa => drivers/soc/pxa}/mfp.c | 2 +- > {arch/arm/plat-pxa => drivers/soc/pxa}/ssp.c | 0 > .../plat-pxa/include/plat => include/linux/soc/pxa}/mfp.h | 6 ++---- > 13 files changed, 11 insertions(+), 20 deletions(-) > rename {arch/arm/plat-pxa => drivers/soc/pxa}/Kconfig (83%) > rename {arch/arm/plat-pxa => drivers/soc/pxa}/Makefile (51%) > rename {arch/arm/plat-pxa => drivers/soc/pxa}/mfp.c (99%) > rename {arch/arm/plat-pxa => drivers/soc/pxa}/ssp.c (100%) > rename {arch/arm/plat-pxa/include/plat => include/linux/soc/pxa}/mfp.h (98%) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index b01f762abbda..330a1685101a 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -796,9 +796,6 @@ config PLAT_ORION_LEGACY > bool > select PLAT_ORION > > -config PLAT_PXA > - bool > - > config PLAT_VERSATILE > bool > > diff --git a/arch/arm/Makefile b/arch/arm/Makefile > index db857d07114f..09622c26a8a4 100644 > --- a/arch/arm/Makefile > +++ b/arch/arm/Makefile > @@ -238,7 +238,6 @@ plat-$(CONFIG_ARCH_OMAP) += omap > plat-$(CONFIG_ARCH_S3C64XX) += samsung > plat-$(CONFIG_ARCH_S5PV210) += samsung > plat-$(CONFIG_PLAT_ORION) += orion > -plat-$(CONFIG_PLAT_PXA) += pxa > plat-$(CONFIG_PLAT_S3C24XX) += samsung > plat-$(CONFIG_PLAT_VERSATILE) += versatile > > diff --git a/arch/arm/mach-mmp/mfp.h b/arch/arm/mach-mmp/mfp.h > index 75a4acb33b1b..6f3057987756 100644 > --- a/arch/arm/mach-mmp/mfp.h > +++ b/arch/arm/mach-mmp/mfp.h > @@ -2,7 +2,7 @@ > #ifndef __ASM_MACH_MFP_H > #define __ASM_MACH_MFP_H > > -#include > +#include > > /* > * NOTE: the MFPR register bit definitions on PXA168 processor lines are a > diff --git a/arch/arm/mach-pxa/include/mach/mfp.h b/arch/arm/mach-pxa/include/mach/mfp.h > index dbb961fb570e..7e0879bd4102 100644 > --- a/arch/arm/mach-pxa/include/mach/mfp.h > +++ b/arch/arm/mach-pxa/include/mach/mfp.h > @@ -13,6 +13,6 @@ > #ifndef __ASM_ARCH_MFP_H > #define __ASM_ARCH_MFP_H > > -#include > +#include > > #endif /* __ASM_ARCH_MFP_H */ > diff --git a/arch/arm/mach-pxa/mfp-pxa2xx.h b/arch/arm/mach-pxa/mfp-pxa2xx.h > index 980145e7ee99..683a3ea5f154 100644 > --- a/arch/arm/mach-pxa/mfp-pxa2xx.h > +++ b/arch/arm/mach-pxa/mfp-pxa2xx.h > @@ -2,7 +2,7 @@ > #ifndef __ASM_ARCH_MFP_PXA2XX_H > #define __ASM_ARCH_MFP_PXA2XX_H > > -#include > +#include > > /* > * the following MFP_xxx bit definitions in mfp.h are re-used for pxa2xx: > diff --git a/arch/arm/mach-pxa/mfp-pxa3xx.h b/arch/arm/mach-pxa/mfp-pxa3xx.h > index cdd830926d1c..81fec4fa5a0f 100644 > --- a/arch/arm/mach-pxa/mfp-pxa3xx.h > +++ b/arch/arm/mach-pxa/mfp-pxa3xx.h > @@ -2,7 +2,7 @@ > #ifndef __ASM_ARCH_MFP_PXA3XX_H > #define __ASM_ARCH_MFP_PXA3XX_H > > -#include > +#include > > #define MFPR_BASE (0x40e10000) > > diff --git a/drivers/soc/Kconfig b/drivers/soc/Kconfig > index 833e04a7835c..fc30a33ada9b 100644 > --- a/drivers/soc/Kconfig > +++ b/drivers/soc/Kconfig > @@ -10,6 +10,7 @@ source "drivers/soc/fsl/Kconfig" > source "drivers/soc/imx/Kconfig" > source "drivers/soc/ixp4xx/Kconfig" > source "drivers/soc/mediatek/Kconfig" > +source "drivers/soc/pxa/Kconfig" > source "drivers/soc/qcom/Kconfig" > source "drivers/soc/renesas/Kconfig" > source "drivers/soc/rockchip/Kconfig" > diff --git a/drivers/soc/Makefile b/drivers/soc/Makefile > index 2ec355003524..2934ad8c5a9f 100644 > --- a/drivers/soc/Makefile > +++ b/drivers/soc/Makefile > @@ -15,6 +15,7 @@ obj-$(CONFIG_ARCH_MXC) += imx/ > obj-$(CONFIG_ARCH_IXP4XX) += ixp4xx/ > obj-$(CONFIG_SOC_XWAY) += lantiq/ > obj-y += mediatek/ > +obj-y += pxa/ > obj-y += amlogic/ > obj-y += qcom/ > obj-y += renesas/ > diff --git a/arch/arm/plat-pxa/Kconfig b/drivers/soc/pxa/Kconfig > similarity index 83% > rename from arch/arm/plat-pxa/Kconfig > rename to drivers/soc/pxa/Kconfig > index 6f7a0a39c2b9..c5c265aa4f07 100644 > --- a/arch/arm/plat-pxa/Kconfig > +++ b/drivers/soc/pxa/Kconfig > @@ -1,9 +1,8 @@ > # SPDX-License-Identifier: GPL-2.0-only > -if PLAT_PXA > +config PLAT_PXA > + bool > > config PXA_SSP > tristate > help > Enable support for PXA2xx SSP ports > - > -endif > diff --git a/arch/arm/plat-pxa/Makefile b/drivers/soc/pxa/Makefile > similarity index 51% > rename from arch/arm/plat-pxa/Makefile > rename to drivers/soc/pxa/Makefile > index 349ea0af8450..413deceddbdd 100644 > --- a/arch/arm/plat-pxa/Makefile > +++ b/drivers/soc/pxa/Makefile > @@ -1,8 +1,4 @@ > # SPDX-License-Identifier: GPL-2.0-only > -# > -# Makefile for code common across different PXA processor families > -# > -ccflags-$(CONFIG_ARCH_MMP) := -I$(srctree)/$(src)/include > > obj-$(CONFIG_PXA3xx) += mfp.o > obj-$(CONFIG_ARCH_MMP) += mfp.o > diff --git a/arch/arm/plat-pxa/mfp.c b/drivers/soc/pxa/mfp.c > similarity index 99% > rename from arch/arm/plat-pxa/mfp.c > rename to drivers/soc/pxa/mfp.c > index 17fc4f33f35b..6220ba321cfc 100644 > --- a/arch/arm/plat-pxa/mfp.c > +++ b/drivers/soc/pxa/mfp.c > @@ -15,7 +15,7 @@ > #include > #include > > -#include > +#include > > #define MFPR_SIZE (PAGE_SIZE) > > diff --git a/arch/arm/plat-pxa/ssp.c b/drivers/soc/pxa/ssp.c > similarity index 100% > rename from arch/arm/plat-pxa/ssp.c > rename to drivers/soc/pxa/ssp.c > diff --git a/arch/arm/plat-pxa/include/plat/mfp.h b/include/linux/soc/pxa/mfp.h > similarity index 98% > rename from arch/arm/plat-pxa/include/plat/mfp.h > rename to include/linux/soc/pxa/mfp.h > index 3accaa9ee781..39779cbed0c0 100644 > --- a/arch/arm/plat-pxa/include/plat/mfp.h > +++ b/include/linux/soc/pxa/mfp.h > @@ -1,7 +1,5 @@ > /* SPDX-License-Identifier: GPL-2.0-only */ > /* > - * arch/arm/plat-pxa/include/plat/mfp.h > - * > * Common Multi-Function Pin Definitions > * > * Copyright (C) 2007 Marvell International Ltd. > @@ -453,8 +451,8 @@ struct mfp_addr_map { > > #define MFP_ADDR_END { MFP_PIN_INVALID, 0 } > > -void __init mfp_init_base(void __iomem *mfpr_base); > -void __init mfp_init_addr(struct mfp_addr_map *map); > +void mfp_init_base(void __iomem *mfpr_base); > +void mfp_init_addr(struct mfp_addr_map *map); > > /* > * mfp_{read, write}() - for direct read/write access to the MFPR register