From patchwork Wed Mar 7 16:24:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 130917 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5376272lja; Wed, 7 Mar 2018 08:24:59 -0800 (PST) X-Google-Smtp-Source: AG47ELuepQ3geU/CNNVcjWhzI1rgibNHSEdfE+TP6PHFiq0IFTZymL9JGhtUdIYLZ/FrT9tYqa+K X-Received: by 2002:a17:902:47aa:: with SMTP id r39-v6mr20559339pld.72.1520439899390; Wed, 07 Mar 2018 08:24:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520439899; cv=none; d=google.com; s=arc-20160816; b=OaYEQEWJ9x6FO61if3L7dhev8Os8kQr8BGwdo6e2aSjRosCYZWwHiHUG7Qj98G7tw4 rTbmF+VZqQ1PYWbhbywyj8qL8IKrUpD6iaBrVml8dC3k9/2UDWBmJX3gUVeH/Bt0ZHWz 1SKXvFJ2p4Vp2mo6Oo4szJfvI8XwPd3V7+OowWoiEGwslWhVnqn++26k9+N79CrsZlDb USfljdSUMPDHdn2BgDNofOsakPQV46i+MakSrQhApbaOAyw+Pc08CbVYT7dlpL+zq+ql CjmixyLyJerN+io1C8VfU0OmyPwy1QnChYVedmYHVtXOU0Wiq0xab6Tonnwhf/KH81a/ qzMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=E/LuKDLqec7GfZx+U2Sa/1pt422HriS0+GpEvjFMFpo=; b=MH8aV6qhflpl4pt96URiccYX7iCVCnVJfYPu4cEh/DM3wXqzaaT45IFl0147D1ZIGs LHZAsaNW391iupd1fpjeG4mypRyNyOVBpaoCYfg3a53cFqcATBCsJVWa1J3GqWhNs340 ce7Ruidhcomu7K6z6mdP/7AtO4fKvgqF3WtIRcCqN3KjfdBaryLRjgoaGK2YwbiVuhd5 jsXEtEzI8f0CBgOEja7e1YfdxyyBgU/aV26Jan8oyZ22xzeb5eRHLCiD1nCNTdjuOSmV qz1mnjCjTaaKltEcs/S7708NDY0RlDjIN9ONKdaknnKdiXD5L5P3thn8hYQaOrwW7F10 CBrA== 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 b2si11583465pgq.240.2018.03.07.08.24.59; Wed, 07 Mar 2018 08:24:59 -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; 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 S934010AbeCGQYy (ORCPT + 28 others); Wed, 7 Mar 2018 11:24:54 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:40179 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933502AbeCGQYx (ORCPT ); Wed, 7 Mar 2018 11:24:53 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MLPHO-1eu9pb2i1a-000diG; Wed, 07 Mar 2018 17:24:33 +0100 From: Arnd Bergmann To: Avi Fishman , Tomer Maimon Cc: Arnd Bergmann , Patrick Venture , Nancy Yuen , Brendan Higgins , linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ARM: npcm: add CONFIG_ARCH_MULTI_V7 dependency Date: Wed, 7 Mar 2018 17:24:12 +0100 Message-Id: <20180307162430.2664523-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:gF4p6j0gPbam+NfziKqkjnu+VOTwdO/aps9Yi7frysR07No0cTc +Po/5P481l8d7yS9r96L4/klx2J3ocLNVc7/w7kp5nCQe3TXikv8SKOUVlKDua+V6hGuxBp OK4rAwYg6PzT05Tyd7+MXuflbZPHeP8SjtmlNx+fDkQdN/3q5Ie+L2bW9qMHsN9cvOVHqcL tNbygrzwVPwpVy3KWKMVA== X-UI-Out-Filterresults: notjunk:1; V01:K0:Mb02ZiVoKV8=:arGViqzyvhucD5vgZUNCtN lc+15LHb63Z/Z1Ew5HFqXiSlMMeccCFZkFIpZ4b8qJg8a2aMmrP4E7nU7vDC6lBxoksLMhyNI opz2iLMRg5iSX27PMI6rgy0nDy/0vLzV2KMn47J7cK1bPRREDdYwdCNBUbl38UWZV7lyWd+3v xIh2PlLI2yMo/Xkecatosy0Bz32xUyUxk4+DK3FihuYlzaQT+atbRatmWwKwYMPO+EZ9D+x2j 8PBmUt2h2Z9R2k8ZgZZtYLkerMfyTYOGjVytPzsqebQEO3SOcRSzETFMdxm7Oy8/HvWIYl3vG PiHjSsyPcmrbNaGmJTUKQMJUvfe71Ufm7fO9nh660wcv8GShHqY1IqVd/PmfHWHM8XV0M6gO6 wJzOMbvVWFr3JcZblmr1aHQE+ITxaXaOajMqccj02HyO5PGDdhzCuCi+Kb9AN4nr5poWH174s Gp+9Qgzv33gwpVGzpEn0iF4QYaaQEbN43GXv/YDBlYFkgeURUP2jq08HGcCuzzxEJhvP/rNfN fqT9EkbXgw+Q4QuCNYrQEelPT/Cbsq67oxZO8uJIKE7XcL1siJ643JUT8Gz8r38ec6epTjA6h iuyAmhaeB3zUXXx1xxWRBgusz4V/yZmk6Gei15SHvc1F6wx2NfFs6FrYBXCNT6BG96a/bQKSx 24rFlhsMPcWzBkiZQAByzUf82u5NV2fcx4ayKYYPP/JmjlJd3UvFoTNeL35w54gwhoUVed6eW GXtXeYAyTb38YiaYDkToDpJn9oneVvSzpz1MEg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The top-level CONFIG_ARCH_NPCM symbol is not guarded with a dependency, and can be selected for builds of traditional (non-multiplatform) builds as well, where it causes a build failure: arch/arm/boot/Makefile:17: arch/arm/mach-npcm//Makefile.boot: No such file or directory This moves the dependency to avoid that particular condition. Signed-off-by: Arnd Bergmann --- arch/arm/mach-npcm/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 Reviewed-by: Brendan Higgins diff --git a/arch/arm/mach-npcm/Kconfig b/arch/arm/mach-npcm/Kconfig index 6ff9df2636be..2bc6697c8d97 100644 --- a/arch/arm/mach-npcm/Kconfig +++ b/arch/arm/mach-npcm/Kconfig @@ -1,5 +1,5 @@ menuconfig ARCH_NPCM - bool "Nuvoton NPCM Architecture" + bool "Nuvoton NPCM Architecture" if ARCH_MULTI_V7 select ARCH_REQUIRE_GPIOLIB select USE_OF select PINCTRL @@ -10,7 +10,7 @@ if ARCH_NPCM comment "NPCM7XX CPU type" config ARCH_NPCM750 - depends on ARCH_NPCM && ARCH_MULTI_V7 + depends on ARCH_NPCM bool "Support for NPCM750 BMC CPU (Poleg)" select CACHE_L2X0 select CPU_V7 From patchwork Wed Mar 7 16:24:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 130918 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp5376486lja; Wed, 7 Mar 2018 08:25:15 -0800 (PST) X-Google-Smtp-Source: AG47ELsOoSO4iEmEFmwVqNbzVtjizIrGdcPeiAIeWVaNyBr63CH/gX0Loige6UTLps6gErhfqkJD X-Received: by 10.99.117.76 with SMTP id f12mr18995702pgn.410.1520439915029; Wed, 07 Mar 2018 08:25:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520439915; cv=none; d=google.com; s=arc-20160816; b=yInMHdhDkSKnHqVPEMK4Fd1LwGdQhabLcFdpi04Q2WfX4/Qm9eg4KktAJKNxakPfJD Jx5NB6EOFmVP5prKDbPrzFdP2UeLDoce+h2rHEkZdYE3aLFwDFsIGRGjfe15lOOAKP+l d2c79WtJc2R6U3LtHmitsA1lizJng8Gv/QAXTLWsgnQdYPjvXyVkKprEe4gNAOpLu64N c15l6MNK0nBgxN8bP5wgeMaP50AUTcQfRvAskhdCaDSBNEN6tJR0oSfwKKeuEFepVWce hJiSb72d1zPBO6hCblJXQ+E41tmzsJ9nI2nc100n85280E566e7j3Re//A4/9Xo5xxMc 9bVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=dkkihAUNYtslqFFFThJqfOyb61gCav/ZqY6Lg7+qm6s=; b=Tj2mmCmERSd2hvzCJA2Ez6R/2HnFgHUWRgyfXs8UpHgh1Q7H/INua2HlHPFEnPOGBf lCqCIIMf3wWXgFRRqApUBxtptXKNzbJGlgU5Y3UDzgQu0Jk2iPODR/GM7S5zQKqwLWu0 8ZvFATfxV8YMYoUAK9ohZt6lAWaFn7mOjaV/vucUsXRgIxEq1SRb30JwKa+KIktWQcb4 EKoupMH+b7aWZ6prhnWBSmwN4QsjLIfmDADOocjV7WtKZ+IDrDbos8/kAUEhG8MdFLZq fkjlj0vePoi5zLHyhJajcmsomXn7joUItHjElVlEYOI1U8O12S9W9RSC5ods+39xePAw wWMw== 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 b2si11583465pgq.240.2018.03.07.08.25.14; Wed, 07 Mar 2018 08:25:15 -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; 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 S934031AbeCGQZM (ORCPT + 28 others); Wed, 7 Mar 2018 11:25:12 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:51197 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933502AbeCGQZL (ORCPT ); Wed, 7 Mar 2018 11:25:11 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0MFLHA-1eqKcs45kS-00EP5u; Wed, 07 Mar 2018 17:24:47 +0100 From: Arnd Bergmann To: Avi Fishman , Tomer Maimon Cc: Arnd Bergmann , Patrick Venture , Nancy Yuen , Brendan Higgins , linux-arm-kernel@lists.infradead.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: npcm: drop extraneous 'select' statements Date: Wed, 7 Mar 2018 17:24:13 +0100 Message-Id: <20180307162430.2664523-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180307162430.2664523-1-arnd@arndb.de> References: <20180307162430.2664523-1-arnd@arndb.de> X-Provags-ID: V03:K0:nU2rZ+Wml/8E+9GxQtEn7StbOIsGHQSOb1gZPPg5n8LkDIxZMUH tA0mPmE/YAjJ2v2rsmIE9KeNtSghCfoEw7dmoNhdsHpubT0ZHxisOfpRv7sFCiMoQ6EejU+ ARNbxhBIOjTUPHqfkf7y+RddFLYW3WVMkSL4boOsu8e+LOqEx625mUPOQ3wJ2j31zVridYk seetRZWfncMKJpTL2lU3A== X-UI-Out-Filterresults: notjunk:1; V01:K0:RHv5hhLc8kY=:AGgcS3Yu+VsbhdrBi0KxCp AkF0wr8Frl9PH5tYW5Vw2R4XEeTtWTkaAlz5DJlrWgtMB+pMYPaNKlmYbnCIM58U//fPsNxcH M7DGiP+mAyjuMFK3A4UXf8fqbl1UWK7+ta+XvGBBOFjeCSxd1wy/7s/eqzq/cVPxZHdQQMhcN 9a1FEATs1qn4jcCzV5y3Jeu3Hs01iYKSMtbNfbscvPk/ltkhlvGSiTIm6o+dxAMB7NlUcp7yT KGS9cKSRsbw6F0WHbeESbyn8T551gRhWb8iLRGeLD1J2fBg/Vop0u0UxwZDkcDr109iRCjPNw cTBpCCJQZUp4tSIhB+wJMiWUNDpDwhhEpmSbfSt9rd6lJG3jixNpc/adbgTNNRCltzAa4sglF IrQer4r5a+ZoKKXauZS2sK7sc8q5G/LjdLTn3ps2eBKaTl5KnX4VnniHJ6+QevVNxMvq3HlJP mA7epMJAOBIPlOHRJXDhCKoe+12KoB/bo5BQE0RRF9FFdGaorev6LBuEH9qo3Po2rMQ+zFJ0E Idpa1+8jFgw/0TSHNP6p+C8HYHW6ZufgaqULoCmp0RPFzhHMBvPaMw3LCL1ZQr/WPiU0LF3dF mCN346Sd1pKpShmciGlweuG3rkgVR8macxYabAc5mVpL4h6CrjGNgqT/viMi3/bnFcyyiQw5X 6XEwHxijqZM8Dn0uGbLukFE1tza5zC82Tl6ZtdML04Rs8ypUUClb1hwJgX4UFlt0jQBFQZnNQ UDXkKkQArBTuhFGbPmAHDLJ6lBiZabnl4KPQow== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 Acked-by: Joel Stanley 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