Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754144Ab3CKQjB (ORCPT ); Mon, 11 Mar 2013 12:39:01 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:60672 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753605Ab3CKQi7 (ORCPT ); Mon, 11 Mar 2013 12:38:59 -0400 Date: Mon, 11 Mar 2013 16:38:42 +0000 From: Russell King - ARM Linux To: Maxime Ripard Cc: Arnd Bergmann , Olof Johansson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: multiplatform: Sort the max gpio numbers. Message-ID: <20130311163842.GK4977@n2100.arm.linux.org.uk> References: <1359890688-10336-1-git-send-email-maxime.ripard@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1359890688-10336-1-git-send-email-maxime.ripard@free-electrons.com> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1611 Lines: 48 Arnd, Olof, Have you merged this for -rc ? On Sun, Feb 03, 2013 at 12:24:48PM +0100, Maxime Ripard wrote: > When building a multiplatform kernel, we could end up with a smaller > number of GPIOs than the one required by the platform the kernel was > running on. > > Sort the max GPIO number by descending order so that we always take the > highest number required. > > Signed-off-by: Maxime Ripard > --- > arch/arm/Kconfig | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 1e86fa9..852ae76 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -1626,13 +1626,16 @@ config LOCAL_TIMERS > accounting to be spread across the timer interval, preventing a > "thundering herd" at every timer tick. > > +# The GPIO number here must be sorted by descending number. In case of > +# a multiplatform kernel, we just want the highest value required by the > +# selected platforms. > config ARCH_NR_GPIO > int > default 1024 if ARCH_SHMOBILE || ARCH_TEGRA > - default 355 if ARCH_U8500 > - default 264 if MACH_H4700 > default 512 if SOC_OMAP5 > + default 355 if ARCH_U8500 > default 288 if ARCH_VT8500 || ARCH_SUNXI > + default 264 if MACH_H4700 > default 0 > help > Maximum number of GPIOs in the system. > -- > 1.7.10.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/