Received: by 10.213.65.16 with SMTP id m16csp270539imf; Mon, 12 Mar 2018 03:18:00 -0700 (PDT) X-Google-Smtp-Source: AG47ELvOCT1Q/wGLIUfIWTCuDO7CyxlCrsUeNakiJXMfsKOxriyWlLfkN74eC2J9UrVUnteLiDdN X-Received: by 10.99.110.131 with SMTP id j125mr6169155pgc.382.1520849880757; Mon, 12 Mar 2018 03:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520849880; cv=none; d=google.com; s=arc-20160816; b=SGw641rbDkqcp6ZMLjE9oqMa0Wa3zPS3bwGZk2DNSTb/QeFwQmA/eUmuFCjH9jU29j c0Nqi5xcDOJa8/ULqYehzvAP1Lu6Ey6QpoQysfkAg9V+HeBozKRk1+olxvp2wh3hRBZQ Iu7xoOsM9b79M+dinYWdWz/RnJWLNBCtW4Ldo3stptLU6TWUCE/yZ5O31htVJlAKpHk+ T/yZVZvnEM9BOzMaPKbYzRWHQq5/jwe2IM2ZD2PpjOqB042SKY5sxt0YhEbIeekA3CIm 8uKsZBENudgG0bTuQSqLotKZy6OeLj6w2Ll1sqXeZbZ3Y10Lr/pvKMUo8/ywDosX3mPq bSag== 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=dkgtHWnvEoWWgWG64r0+dCNmD/HN08g6oAOoP+p6TJE=; b=ENPP8vm1LMHRHvvO7vT0ctpeXDTlle7Xtf9b4OGhTskLH7mTyMPKFCinFkLCYPVODM i/I3Gkn3O4tO9vVzkzFMAKTTCYB4PQS168+eTKdR8WZrNAQmxlUfvqjtT3dFjj01qeFl yP1PukBJeNe+wgPFWfVeGOh3imHD8WteFGM0NpLOkc9dMboEC+jiNmNnMkdWnv9+cI3b nqSYUk+shesLz7bxtUl88WIVY53gjlA1CrgvfLXklQ27qJzr2sH5xMCEOO9fy83p2BbH CQM31WE1kh6BF0B3grJxeX7XG4xtw166nqbsIA3e48W0FQ6be+YUJrDFWPkcxBjHOUt8 aaOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VulXXgmP; 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 m16-v6si5812413pls.471.2018.03.12.03.17.46; Mon, 12 Mar 2018 03:18:00 -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=VulXXgmP; 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 S1752242AbeCLKQu (ORCPT + 99 others); Mon, 12 Mar 2018 06:16:50 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:39150 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbeCLKQs (ORCPT ); Mon, 12 Mar 2018 06:16:48 -0400 Received: by mail-it0-f66.google.com with SMTP id l187-v6so10698400ith.4 for ; Mon, 12 Mar 2018 03:16:48 -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=dkgtHWnvEoWWgWG64r0+dCNmD/HN08g6oAOoP+p6TJE=; b=VulXXgmPJaKdOtoqGZwBIAqZ0g6olF2wMGXT7FzCnMvX53wM4CSNkczV0yiFvUcGl8 uA2B9n1m1tOcmH8I/NGlr9wu6n1BQat5c5mmB6QO/SPn+GZ91YTXUE9LTZcr9xRse5HH fRdR3qps1D214ICOQEfA8Q7glTyssUUKhUOfK67rD+ZeMey9eP7C5sHkJNFh3XYxIb4h 1ea34QnnOGQyUDwV08rCq7/bhj9Ep4/6HmQ2Em4MBzH2RWyAB0DA1kbn52m8QIiVh+yb V5zzpzXcwtLJa7bmg7fu9VAGYxeolyb6ZzBc3Aq/T1dGG+g8VBvzTdB4IsowN0J2SeF/ Bihg== 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=dkgtHWnvEoWWgWG64r0+dCNmD/HN08g6oAOoP+p6TJE=; b=Q7cXQ7DsFjpNc0aBEXTYp9iDFQnjFL70TV4vpzvbCk8D8V5y/HFydBvakML3zro06W Q937crZ8oF39a30z7S553l0I/ZE07L6hWg958oSCb1I75CeMFcd+WT5u3N90m53h+o+u XY6QshDp6i4K0XYp8T7vGrrTXoSgRoqxh6QBDnDGaFk+06LcIIyoXea50xYJFUnzerb+ Rg7uYM//jmX72+Ik9SsUHMFhPtl6UYiK5Q6vzTiZoXo6hHfV3GMyQCn03PzDecKPhAdy QQKxtNR6yowaugeXxzMuR+khZ9Cpqc2VFJlFymTVPULb7Q1F+eqKJ6fz5sKh35vTy1Ky OF+w== X-Gm-Message-State: AElRT7E/Q7MEz7vT4qbd5rc3C968xXm7Hbbtz6k8a7L13Z9j5xJrhido CtGLInB7cIeNEIvtymYrX89CLPCirtytJsoozco= X-Received: by 10.36.245.138 with SMTP id k132mr7617062ith.96.1520849807992; Mon, 12 Mar 2018 03:16:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.183.17 with HTTP; Mon, 12 Mar 2018 03:16:47 -0700 (PDT) In-Reply-To: <20180307162430.2664523-2-arnd@arndb.de> References: <20180307162430.2664523-1-arnd@arndb.de> <20180307162430.2664523-2-arnd@arndb.de> From: Tomer Maimon Date: Mon, 12 Mar 2018 12:16:47 +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 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 >