Received: by 10.213.65.16 with SMTP id m16csp311749imf; Mon, 12 Mar 2018 04:44:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELvktdy55PC3DCn3DNvJAQoE3upTakR7304Gx3dkz2/5jc0i+3qxRKSpI//tuvZ/YvyOcHh9 X-Received: by 10.98.59.218 with SMTP id w87mr7773359pfj.37.1520855072595; Mon, 12 Mar 2018 04:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520855072; cv=none; d=google.com; s=arc-20160816; b=nyjnpcY7Y95ubMSPX7FpT1z1iaCVfq5NcW/CmXyIuW526kFDdmCcauMGJkcZFag6qE KJDqG1cUotAF1UdnFN5vVtrHAYDC8yfS3u6YAsYJbnlcOXx0Zb0115z+/AbSF93F0jOn GzQZv6rQbFHhzKKgOY9RT+SS038IlUKCGhi408HG3hn7WniIq4PpyJ6RS1Fph0087P+Z IlTfSCgderoysyT488rHBplDju8T1kSE7RMrgulrRqsoF0WvXkvusHDj7UGhykiqkZns iegIC4va8loFmuEmyTHqaDnjzQV1S7Md/adftjx7t2+AEEgsFGh5BVj5Mat36kXTiiLT jR4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=nvXIAhTM7Z9LHpkqrnDNWFFDmwp5Wh0x0rSStwz5JaE=; b=utm1AHzZFyKuI0F3ImNp8ADRBuAiWjFc3eYSvd99o2u85E1qZtv8mG7w1CY9JKw4xQ wryrMx/7UKDPlTkz6pj+O/P3Pymls9Bi6ph0JldvWzmZb78xHT6rqmcENSbcKFeyXbJ6 FNG7PCGdXPCpx7G5InzIalPj0RUk0IPeV9MfusHgxXVoXEFUL3VWrCTMZGQPjjFmTgel vEne15ERarDYEwR5m0zlJIiZ3+HROl+MKEuMWVafUVLIhIKPTH8mIImt0JZT3ZuYOpnY 3CEQr7eK5pJ/QPpCUcWRcHpis8spxQu5kCfenHUsUOtO06KeJefolLoi6hIGIDH2hPPV zYmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rzz1WnBU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j2si5553095pff.214.2018.03.12.04.44.17; Mon, 12 Mar 2018 04:44:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rzz1WnBU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751323AbeCLLnT (ORCPT + 99 others); Mon, 12 Mar 2018 07:43:19 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:34937 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbeCLLnS (ORCPT ); Mon, 12 Mar 2018 07:43:18 -0400 Received: by mail-it0-f67.google.com with SMTP id v194-v6so11048019itb.0 for ; Mon, 12 Mar 2018 04:43:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nvXIAhTM7Z9LHpkqrnDNWFFDmwp5Wh0x0rSStwz5JaE=; b=rzz1WnBUiqiDg2KadSOODmZ0Q8z9mjmx1WM5lqs5Ag1PrXaPUBj877W0jOhmcLKNdg XAFirBpY1br6GFfreCs03NINoMMxLoIKL4asdB5rfd3R3BAdX3cfkFO2jvhY0PrC3MxY TuZJacrtXXezYnCL3aDE8bz2wAkD/4PHLFI7aiNTv06bYQOUGX9PxQl2JbbCK0LeixyB x2bohI5BMFFLk8u3XFoGbzBFesOBkxV60VK6UE9BkZxmKklrYLHMEV8kx/+lTLtBBpmy cultDNRNSL5A55PGkYy08Fkoki8WNyPEO9YJ/tUO5uN9UKdbxGGgR6A7SBwd/ofHj8ZN B5SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nvXIAhTM7Z9LHpkqrnDNWFFDmwp5Wh0x0rSStwz5JaE=; b=lzCK0pZvrtvuKxPkjXJrQ9MI+lcXF/9RmbP/o4uEL4kP/A7FxHw0siiNUBQxuo9elI GP747suaMyxIrkrTMcWkYLto4TsW6OHupYOszNEZO745wB9QtNEQmqYdvf/3FX9dOk2o w2gKXWZSmkBiAkJRz+pXyzMNORQN2CufEPA0ssRwZHWPOMia56OBKZ7UKcb39OiFZskZ mvF9VI8H0IWHz9Srbku9njvu1Mb8TbhzugFmv9R8EZgDXjEnEyMKXfTGUZIcu0TrXQpj GNuPOAiG/78Bokb3iEK7RQhZcNuoeWkPocqPI4FB8VLjNJY/6M2bgMUGLbM9oUW7U/9X 8CjA== X-Gm-Message-State: AElRT7EdjMQ3ibujEjPj4dFSNUSjWVzZBuSxL5SLfqDQbLiSBBishs0O guzBIgpFmHHN/OUEf/J35VSmzXOdJ1NDYfUj4geM6Q== X-Received: by 10.36.158.194 with SMTP id p185mr8135614itd.77.1520854997697; Mon, 12 Mar 2018 04:43:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.183.17 with HTTP; Mon, 12 Mar 2018 04:43:17 -0700 (PDT) In-Reply-To: References: <20180307162430.2664523-1-arnd@arndb.de> <20180307162430.2664523-2-arnd@arndb.de> From: Tomer Maimon Date: Mon, 12 Mar 2018 13:43:17 +0200 Message-ID: Subject: Re: [PATCH 2/2] ARM: npcm: drop extraneous 'select' statements To: Arnd Bergmann Cc: Avi Fishman , Patrick Venture , Nancy Yuen , Brendan Higgins , linux-arm-kernel@lists.infradead.org, OpenBMC Maillist , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Arnd, Please discard my previous mail, (I have more things to ask... please read this mail) Sorry for the delayed reply, Before entering the long mail (sorry about it) just a technical thing I think we should add ARM_GIC configuration, It is not implied in ARCH_MULTI_V7. Now for the real story :-) The NPCM7xx is a family of BMC's that include NPCM750, NPCM730 and more All of the NPCM7xx BMC's have the same basic modules like Cortex-A9, WDT, timers, etc - must included shared modules, and there are a optional modules that can be added (for example the USB is not in NPCM730) so the additional optional modules give us the differences between the NPCM7xx BMC's I will like to use the same method that SPEAR using (arch/arm/mach-spear/Kconfig) can we reflacte the NPCM7xx as follow in the Kconfig: menuconfig ARCH_NPCM bool "Nuvoton NPCM Architecture" depends on ARCH_MULTI_V7 select USE_OF select PINCTRL if ARCH_NPCM config ARCH_NPCM7XX bool "Support for NPCM7xx BMC (Poleg)" depends on ARCH_MULTI_V7 select CACHE_L2X0 select PINCTRL_NPCM7XX select NPCM7XX_TIMER select ARCH_REQUIRE_GPIOLIB select ARM_GIC select ARM_ERRATA_720789 select ARM_ERRATA_754322 select ARM_ERRATA_794072 select PL310_ERRATA_588369 select PL310_ERRATA_727915 select MFD_SYSCON help General support for NPCM7xx BMC (Poleg). Nuvoton NPCM7xx BMC based on the Cortex A9. if ARCH_NPCM7XX config ARCH_NPCM750 bool "NPCM750 BMC support with Device Tree" select HAVE_ARM_TWD if SMP select HAVE_ARM_SCU if SMP select ARM_ERRATA_764369 if SMP help General support for NPCM750 BMC (Poleg). Nuvoton NPCM750 BMC based on the Cortex A9. config ARCH_NPCM730 bool "NPCM730 BMC support with Device Tree" select HAVE_ARM_TWD if SMP select HAVE_ARM_SCU if SMP select ARM_ERRATA_764369 if SMP help General support for NPCM730 BMC (Poleg). Nuvoton NPCM730 BMC based on the Cortex A9. endif #ARCH_NPCM7XX endif if we use the above approach can we unite the two sections into one (since they are the same) as follows: config ARCH_NPCM750_NPCM730 bool "NPCM750 or NPCM730 BMC support with Device Tree" select HAVE_ARM_TWD if SMP select HAVE_ARM_SCU if SMP select ARM_ERRATA_764369 if SMP help General support for NPCM750 or NPCM730 BMC (Poleg). Nuvoton NPCM750 or NPCM730 BMC based on the Cortex A9. or even better include it in ARCH_NPCM7XX and remove the ARCH_NPCM750 and ARCH_NPCM730? Regarding another matter, defconfig file: We would like to consult how to describe the various chips (e.g. NPCM750, NPCM730) in the defconfig file. One option is to include all modules (as included in NPCM750 chip, which is a superset chip) and all the chips. The we call it npcm7xx_defconfig (same as spear13xx_deconfig) . In this option customers of NPCM730 will need to manually undef non-existing modules. Another option is to create different defconfig files for each chip of this NPCM7xx family, e.g. npcm750_defconfig and npcm730_defconfig. Which approach should be adopt ? We will appreciate your advise. Thanks a lot, Tomer On 12 March 2018 at 12:16, Tomer Maimon wrote: > Hi Amd, > > Sorry for the delayed reply, > > the NPCM7xx is a family of BMC's that include NPCM750, NPCM730 and more > > All of the NPCM7xx BMC's have the same basic modules like Cortex-A9, > WDT, timers and more > > can we reflacte the NPCM7xx as follow in the Kconfig: > > menuconfig ARCH_NPCM > bool "Nuvoton NPCM Architecture" > depends on ARCH_MULTI_V7 > select USE_OF > select PINCTRL > > if ARCH_NPCM > > config ARCH_NPCM7XX > bool "Support for NPCM7xx BMC (Poleg)" > depends on ARCH_MULTI_V7 > select HAVE_ARM_SCU > select PINCTRL_NPCM7XX > select NPCM7XX_TIMER > select ARCH_REQUIRE_GPIOLIB > select ARM_GIC > select ARM_ERRATA_720789 > select ARM_ERRATA_754322 > select ARM_ERRATA_794072 > select PL310_ERRATA_588369 > select PL310_ERRATA_727915 > select MFD_SYSCON > help > General support for NPCM7xx BMC (Poleg). > > Nuvoton NPCM7xx BMC based on the Cortex A9. > > if ARCH_NPCM7XX > > config ARCH_NPCM750 > bool "NPCM750 BMC support with Device Tree" > select HAVE_ARM_TWD if SMP > help > General support for NPCM750 BMC (Poleg). > > Nuvoton NPCM750 BMC based on the Cortex A9. > > config ARCH_NPCM730 > bool "NPCM730 BMC support with Device Tree" > select HAVE_ARM_TWD if SMP > select ARM_ERRATA_764369 if SMP > help > General support for NPCM730 BMC (Poleg). > > Nuvoton NPCM730 BMC based on the Cortex A9. > > endif #ARCH_NPCM7XX > > endif > > On 7 March 2018 at 18:24, Arnd Bergmann wrote: >> While looking at the build regression, I noticed that the >> platform selects a lot of other Kconfig symbols that it really >> should not: >> >> CPU_V7, ARM_GIC, HAVE_SMP, COMMON_CLK, GENERIC_CLOCKEVENTS, >> and CLKDEV_LOOKUP are all implied by ARCH_MULTI_V7, so they >> can be dropped. >> >> CACHE_L2X0, SMP and USB are meant to be user-selectable, we >> want to be able to turn those off for testing purposes. >> >> CPU_USE_DOMAINS looks completely misplaced here, we should not >> select that for an ARMv7 platform. >> >> Signed-off-by: Arnd Bergmann >> --- >> arch/arm/mach-npcm/Kconfig | 18 ------------------ >> 1 file changed, 18 deletions(-) >> >> diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig >> index 2bc6697c8d97..c6a16230e8ef 100644 >> --- a/arch/arm/mach-npcm/Kconfig >> +++ b/arch/arm/mach-npcm/Kconfig >> @@ -12,12 +12,6 @@ comment "NPCM7XX CPU type" >> config ARCH_NPCM750 >> depends on ARCH_NPCM >> bool "Support for NPCM750 BMC CPU (Poleg)" >> - select CACHE_L2X0 >> - select CPU_V7 >> - select ARM_GIC >> - select HAVE_SMP >> - select SMP >> - select SMP_ON_UP >> select HAVE_ARM_SCU >> select HAVE_ARM_TWD if SMP >> select ARM_ERRATA_720789 >> @@ -26,18 +20,6 @@ config ARCH_NPCM750 >> select ARM_ERRATA_794072 >> select PL310_ERRATA_588369 >> select PL310_ERRATA_727915 >> - select USB_EHCI_ROOT_HUB_TT >> - select USB_ARCH_HAS_HCD >> - select USB_ARCH_HAS_EHCI >> - select USB_EHCI_HCD >> - select USB_ARCH_HAS_OHCI >> - select USB_OHCI_HCD >> - select USB >> - select FIQ >> - select CPU_USE_DOMAINS >> - select GENERIC_CLOCKEVENTS >> - select CLKDEV_LOOKUP >> - select COMMON_CLK if OF >> select NPCM750_TIMER >> select MFD_SYSCON >> help >> -- >> 2.9.0 >>