Received: by 10.223.185.116 with SMTP id b49csp6156216wrg; Thu, 8 Mar 2018 02:47:35 -0800 (PST) X-Google-Smtp-Source: AG47ELtmYP27VYtM1AJBxtnpQ0EuLdXD8so67LLqFrq4lOH5IvrAMdsJrNmvUbDUIC3W64+1qqK5 X-Received: by 10.98.102.82 with SMTP id a79mr25938833pfc.138.1520506055102; Thu, 08 Mar 2018 02:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520506055; cv=none; d=google.com; s=arc-20160816; b=tv8ZKkTRAMVc9lt5loXIDIyDXHCfKo16ILgAtefCww3Ukc788ziT23qzfW8S0emFaY 7UKtCupo9S00BbAjnARyj3hCJ/MXPSOWwPstd8zfdp7I2ZliQhBD8oBxE1avLqU8Co8t mdl6jM35aTmNQ6H6lMYRNct9rHBcknrp3UPF/PiPMTxph8Q3Pw0kTdbIBJEguphq+JVg B+4bKS2WshNUBYenNKeWTF62HyBUPOcs3icude+NomsCGSfL6jtvJrm2xt8qKhuzvAyo Hp8pQGNSU7MsX5x5Ym7d365NjxMokQA29gO2HV9EhWFQ9zNX1IzpVETB/Gr3MbJeoPiU 6CzA== 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=XlpYLkZSljCexmXwWeRPzLBzc2mUH+lAgcutniUpA2A=; b=vGG/N34cEKMR1gjvO3jiQZstRM941qYzS2e0md/ehcJsenuA/Vb9ROJy9wOiKMTbX+ EbWEZ5FWik4Q6vRlX/vzggIVb4CxBCSStU5DxpkBbl+3T4rcyc1uJ5Gup6WK9zsVTOU7 lHAWNUut4r0bgzmLldqt+CjK9jTOuJGnrYMHPZRHHqZkez/ZgtJI36/B7WM2JdjpzJVk MOx7dlk9Euxo/oq/BVJIdMekDW5NYUbW+k6v05zhjf8FfZZCDTBnnmdnJo/tPP+d0OIx vDtcXV54LSo3L7WCmqbglqFYlPigTT8CjdZtVKhvNLci0rDg5viu0DsENEAXJaxk6FGn aTPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZDVsUtRC; 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 i6-v6si14283671plt.437.2018.03.08.02.47.20; Thu, 08 Mar 2018 02:47:35 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZDVsUtRC; 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 S935735AbeCHKqS (ORCPT + 99 others); Thu, 8 Mar 2018 05:46:18 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:47044 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934574AbeCHKqR (ORCPT ); Thu, 8 Mar 2018 05:46:17 -0500 Received: by mail-ot0-f195.google.com with SMTP id g97so4964181otg.13 for ; Thu, 08 Mar 2018 02:46:16 -0800 (PST) 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=XlpYLkZSljCexmXwWeRPzLBzc2mUH+lAgcutniUpA2A=; b=ZDVsUtRCsCKp7UwsRNetbkLToIO/b27qxVhEgbPPAGCPZ+0rWTWMcIGEZTJ3G+Ij4o J0MQVwU/9ZUR5+eBO/HwobgS8TfduoSW8LP4dRrOEQ16ibailI/jpaDYiwbi1H3pAsF+ lUOfd9S7ipOFZu7SUYxFn7Fb0gVvGo/2ZL3YRRyMuU8qFSgtrYjx3z4LklNAhOBWe1dt QsVwod4k3JhvAle/OVXC7MhWaN+1b56eSfnn8Y/oPJ3sj7V6APqV42pOU7HR96WvkFf9 GQqrIPZ6REXHvLKKwQ/Eem/NaGlAHHz8Hz2N/SyMrL2e0P1krVGDUby5SPVBR3zokAcO 0UOA== 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=XlpYLkZSljCexmXwWeRPzLBzc2mUH+lAgcutniUpA2A=; b=CrTyJCkVvKihqh6hgn17MWyZQ4/2F1oFRg57xe5tRLkxr8yYLXpCaFNujwnDkwjQCv RJG4WAjTCCaJl7acP3Facw8L2mCHpRbJXHDN1k/RGnO5Rg8HiL4G77CyPCgCqBi44v9R eBsTpwwUEJlfK9fscG0nIcUTbER6Qy3vtc3ENN8GwZHLXIQ+j1rMErzMDzkPdb+zPWwx 0ldrcXcZg5BfPhERK4QKu4YCsrHV9lWfgAoRzjTStjuG3k6K8Fta1tCDDENGDA8xHlsA 2oeJNkGocTayNsyzspYT2oyzP5OyYYicBLty4WonBhmBzBurRI/uLIYNxiOZa4iH5qth 8Qnw== X-Gm-Message-State: AElRT7HW4rDV0Wl4oYi31c5Qq7xwgO7dRKiHzZwx8Y6GLFQ79U5ny7Bs Jf9XY00zWVh0zIEYMob7IWbNi8kEvwl/6le70w== X-Received: by 10.157.69.152 with SMTP id x24mr16948343ote.126.1520505976584; Thu, 08 Mar 2018 02:46:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.63.4 with HTTP; Thu, 8 Mar 2018 02:46:16 -0800 (PST) In-Reply-To: References: <20180307162430.2664523-1-arnd@arndb.de> <20180307162430.2664523-2-arnd@arndb.de> From: Avi Fishman Date: Thu, 8 Mar 2018 12:46:16 +0200 Message-ID: Subject: Re: [PATCH 2/2] ARM: npcm: drop extraneous 'select' statements To: Joel Stanley Cc: Arnd Bergmann , Tomer Maimon , Patrick Venture , Nancy Yuen , Brendan Higgins , Linux ARM , 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 So at least replace CACHE_L2X0 with MIGHT_HAVE_CACHE_L2X0 then CACHE_L2X0 will be selected by default and user can still remove it. On Thu, Mar 8, 2018 at 4:12 AM, Joel Stanley wrote: > On Thu, Mar 8, 2018 at 2:54 AM, 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 > > I had a similar patch queued for sending out. Thanks Arnd. > > Acked-by: Joel Stanley > > Cheers, > > Joel > >> --- >> 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 >>