Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2055086ybg; Sat, 19 Oct 2019 07:31:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0QvGQTe27ReW3sDQTutsDHRDRx2Eu+rGwkf2HId2Ur6hSi4v3iOHIszDJv7nwtIH/BZw9 X-Received: by 2002:a05:6402:1b88:: with SMTP id cc8mr15304998edb.22.1571495463701; Sat, 19 Oct 2019 07:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571495463; cv=none; d=google.com; s=arc-20160816; b=JKAASdK17jkCR9LCD3MN6OJB5K9ye3loqWTHbH1il6IqT05AfjLpS++eAmgMtQBmoM QsL05ppg4+8BIDW1cTIJ0ms/+EO6RDJzB50jM7IfGcjylnR08lOQuTg1tWUIKqMFeFDd 9I/yivRQCIrhJLMwKXi9dcKCVW3hXDOpOhvUt3AlxbBfSQOVpxOnX1aTNJ/k7alfxXse irD5d7spO0puHUDkidU7yPlwUxYZhkTq9h/rQdKEUepq7GJlXEcqcLuD/T3wTWv9+KWn XGK9AagJ9u1e0+ZuKsbC1bL9Lv8dBZ49iROBnfublWi4YgKx1BvprUqK1WFBn+sOxwwA zcuA== 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=71ucfMAaJ0/jwBRIcWUSpWV1cNs5sU0jT+7xwl3pkNA=; b=Fjw3JIE116cQOqSexdcgphmg3I1SNMVf3KX6ZeB+xzP/+giFWLCf4un9vUSMs5e6gS A0si0+xXgzB42NMXgPUi5iRGOFF5Y5tbiyAj1zpUrLCbTNG8SEADGlpZxF5yEyskJotE su9zRr4BU8l/wbJsgL1qgrOk/3/wWJZDYJM/wT7HltUoeviNVCHeczfGO9w2VARlA1x5 Nnq6XGonJioG1kH5MKRf5GLGRk5Ntkpr1zHfzFVM0fX2TYSJKAJMpKFt40ROWeqoqXpM CxlCcxWhCDdts5eWnmZqpoGfh8kN8WXrTXz2HK2neEf8D9w9ZDQ8wr7EJpsWQumKuYJI OaHw== 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 nh5si5457068ejb.154.2019.10.19.07.30.40; Sat, 19 Oct 2019 07:31:03 -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 S1726081AbfJSO1L (ORCPT + 99 others); Sat, 19 Oct 2019 10:27:11 -0400 Received: from shell.v3.sk ([90.176.6.54]:54118 "EHLO shell.v3.sk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725924AbfJSO1L (ORCPT ); Sat, 19 Oct 2019 10:27:11 -0400 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Sat, 19 Oct 2019 10:27:09 EDT Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id B22B34F1C0; Sat, 19 Oct 2019 16:20:26 +0200 (CEST) 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 DjxP6GpsWBXi; Sat, 19 Oct 2019 16:20:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix) with ESMTP id 7EC60501B1; Sat, 19 Oct 2019 16:20:15 +0200 (CEST) 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 6LVNgAAGEd2u; Sat, 19 Oct 2019 16:20:12 +0200 (CEST) Received: from nedofet.lan (unknown [109.183.109.54]) by zimbra.v3.sk (Postfix) with ESMTPSA id D9D2B4F1C0; Sat, 19 Oct 2019 16:20:10 +0200 (CEST) Message-ID: <4d6920e9fab519ddf69aae9da13a1cd02d13bddd.camel@v3.sk> Subject: Re: [PATCH 44/46] ARM: mmp: remove tavorevb board support 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: Sat, 19 Oct 2019 16:20:07 +0200 In-Reply-To: <20191018154201.1276638-44-arnd@arndb.de> References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-44-arnd@arndb.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.0 (3.34.0-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:41 +0200, Arnd Bergmann wrote: > There are two tavorevb boards in the kernel, one using a PXA930 chip in > mach-pxa, and one using the later PXA910 chip in mach-mmp. They use the > same board number, which is generally a bad idea, and in a multiplatform > kernel, we can end up with funny link errors like this one resulting > from two boards gettting controlled by the same Kconfig symbol: > > arch/arm/mach-mmp/tavorevb.o: In function `tavorevb_init': > tavorevb.c:(.init.text+0x4c): undefined reference to `pxa910_device_uart1' > tavorevb.c:(.init.text+0x50): undefined reference to `pxa910_device_gpio' > tavorevb.o:(.arch.info.init+0x54): undefined reference to `pxa910_init_irq' > tavorevb.o:(.arch.info.init+0x58): undefined reference to `pxa910_timer_init' > > The mach-pxa TavorEVB seems much more complete than the mach-mmp one > that supports only uart, gpio and ethernet. Further, I could find no > information about the board on the internet aside from references to > the Linux kernel, so I assume this was never available outside of Marvell > and can be removed entirely. > > There is a third board named TavorEVB in the Kconfig description, > but this refers to the "TTC_DKB" machine. The two are clearly > related, so I change the Kconfig description to just list both > names. > > Cc: Lubomir Rintel > Signed-off-by: Arnd Bergmann Reviewed-by: Lubomir Rintel In fact, I'd love to see more non-DT boards go from mach-mmp. There are good indications nobody is looking after MMP2-based "Jasper", "Flint" and "Brownstone" and they probably weren't seen outside Marvell either. The latter has a DTS file. Would anybody miss them? Thanks Lubo > --- > arch/arm/mach-mmp/Kconfig | 10 +--- > arch/arm/mach-mmp/Makefile | 1 - > arch/arm/mach-mmp/tavorevb.c | 113 ----------------------------------- > 3 files changed, 1 insertion(+), 123 deletions(-) > delete mode 100644 arch/arm/mach-mmp/tavorevb.c > > diff --git a/arch/arm/mach-mmp/Kconfig b/arch/arm/mach-mmp/Kconfig > index 0440109e973b..fc8cbe0064ae 100644 > --- a/arch/arm/mach-mmp/Kconfig > +++ b/arch/arm/mach-mmp/Kconfig > @@ -39,16 +39,8 @@ config MACH_AVENGERS_LITE > Say 'Y' here if you want to support the Marvell PXA168-based > Avengers Lite Development Board. > > -config MACH_TAVOREVB > - bool "Marvell's PXA910 TavorEVB Development Board" > - depends on ARCH_MULTI_V5 > - select CPU_PXA910 > - help > - Say 'Y' here if you want to support the Marvell PXA910-based > - TavorEVB Development Board. > - > config MACH_TTC_DKB > - bool "Marvell's PXA910 TavorEVB Development Board" > + bool "Marvell's PXA910 TavorEVB/TTC_DKB Development Board" > depends on ARCH_MULTI_V5 > select CPU_PXA910 > help > diff --git a/arch/arm/mach-mmp/Makefile b/arch/arm/mach-mmp/Makefile > index 8f267c7bc6e8..0dc07e1f3196 100644 > --- a/arch/arm/mach-mmp/Makefile > +++ b/arch/arm/mach-mmp/Makefile > @@ -27,7 +27,6 @@ endif > obj-$(CONFIG_MACH_ASPENITE) += aspenite.o > obj-$(CONFIG_MACH_ZYLONITE2) += aspenite.o > obj-$(CONFIG_MACH_AVENGERS_LITE)+= avengers_lite.o > -obj-$(CONFIG_MACH_TAVOREVB) += tavorevb.o > obj-$(CONFIG_MACH_TTC_DKB) += ttc_dkb.o > obj-$(CONFIG_MACH_BROWNSTONE) += brownstone.o > obj-$(CONFIG_MACH_FLINT) += flint.o > diff --git a/arch/arm/mach-mmp/tavorevb.c b/arch/arm/mach-mmp/tavorevb.c > deleted file mode 100644 > index 3261d2322198..000000000000 > --- a/arch/arm/mach-mmp/tavorevb.c > +++ /dev/null > @@ -1,113 +0,0 @@ > -// SPDX-License-Identifier: GPL-2.0-only > -/* > - * linux/arch/arm/mach-mmp/tavorevb.c > - * > - * Support for the Marvell PXA910-based TavorEVB Development Platform. > - */ > -#include > -#include > -#include > -#include > -#include > -#include > - > -#include > -#include > -#include "addr-map.h" > -#include "mfp-pxa910.h" > -#include "pxa910.h" > -#include "irqs.h" > - > -#include "common.h" > - > -static unsigned long tavorevb_pin_config[] __initdata = { > - /* UART2 */ > - GPIO47_UART2_RXD, > - GPIO48_UART2_TXD, > - > - /* SMC */ > - SM_nCS0_nCS0, > - SM_ADV_SM_ADV, > - SM_SCLK_SM_SCLK, > - SM_SCLK_SM_SCLK, > - SM_BE0_SM_BE0, > - SM_BE1_SM_BE1, > - > - /* DFI */ > - DF_IO0_ND_IO0, > - DF_IO1_ND_IO1, > - DF_IO2_ND_IO2, > - DF_IO3_ND_IO3, > - DF_IO4_ND_IO4, > - DF_IO5_ND_IO5, > - DF_IO6_ND_IO6, > - DF_IO7_ND_IO7, > - DF_IO8_ND_IO8, > - DF_IO9_ND_IO9, > - DF_IO10_ND_IO10, > - DF_IO11_ND_IO11, > - DF_IO12_ND_IO12, > - DF_IO13_ND_IO13, > - DF_IO14_ND_IO14, > - DF_IO15_ND_IO15, > - DF_nCS0_SM_nCS2_nCS0, > - DF_ALE_SM_WEn_ND_ALE, > - DF_CLE_SM_OEn_ND_CLE, > - DF_WEn_DF_WEn, > - DF_REn_DF_REn, > - DF_RDY0_DF_RDY0, > -}; > - > -static struct pxa_gpio_platform_data pxa910_gpio_pdata = { > - .irq_base = MMP_GPIO_TO_IRQ(0), > -}; > - > -static struct smc91x_platdata tavorevb_smc91x_info = { > - .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT, > -}; > - > -static struct resource smc91x_resources[] = { > - [0] = { > - .start = SMC_CS1_PHYS_BASE + 0x300, > - .end = SMC_CS1_PHYS_BASE + 0xfffff, > - .flags = IORESOURCE_MEM, > - }, > - [1] = { > - .start = MMP_GPIO_TO_IRQ(80), > - .end = MMP_GPIO_TO_IRQ(80), > - .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE, > - } > -}; > - > -static struct platform_device smc91x_device = { > - .name = "smc91x", > - .id = 0, > - .dev = { > - .platform_data = &tavorevb_smc91x_info, > - }, > - .num_resources = ARRAY_SIZE(smc91x_resources), > - .resource = smc91x_resources, > -}; > - > -static void __init tavorevb_init(void) > -{ > - mfp_config(ARRAY_AND_SIZE(tavorevb_pin_config)); > - > - /* on-chip devices */ > - pxa910_add_uart(1); > - platform_device_add_data(&pxa910_device_gpio, &pxa910_gpio_pdata, > - sizeof(struct pxa_gpio_platform_data)); > - platform_device_register(&pxa910_device_gpio); > - > - /* off-chip devices */ > - platform_device_register(&smc91x_device); > -} > - > -MACHINE_START(TAVOREVB, "PXA910 Evaluation Board (aka TavorEVB)") > - .map_io = mmp_map_io, > - .nr_irqs = MMP_NR_IRQS, > - .init_irq = pxa910_init_irq, > - .init_time = pxa910_timer_init, > - .init_machine = tavorevb_init, > - .restart = mmp_restart, > -MACHINE_END