From patchwork Wed Jul 24 08:43:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2832606 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4B44DC0319 for ; Wed, 24 Jul 2013 09:00:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 93488201BE for ; Wed, 24 Jul 2013 09:00:13 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F503201B5 for ; Wed, 24 Jul 2013 09:00:12 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V1uvX-0003P1-5w; Wed, 24 Jul 2013 09:00:07 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V1uvU-0005TA-Uu; Wed, 24 Jul 2013 09:00:04 +0000 Received: from mail-pd0-f182.google.com ([209.85.192.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V1uvR-0005SJ-JE for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2013 09:00:02 +0000 Received: by mail-pd0-f182.google.com with SMTP id r10so147153pdi.41 for ; Wed, 24 Jul 2013 01:59:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=PPYTa99iTGPkWILSwbu/9Wg4jSzGA4CE770muJUf82k=; b=OBIomQlw8xhrsgNtk5grCu1u0NdEFu1vrFF8C49YGaPU2C+viPW2vm4O13P2V+G/3e /d4iR8pu2JdSudNlakqzNJIdRGknlcZCHGmr/0mvx7FFRZjXbdgiL0i1A+bLNdfKG/Ml 7hX60zEyG1WtCKIBAiTLgSK2ZltlvknBA15cj2Ie/r5mDK2IusFv4SlL6AdwIh+g8NB/ ZbeyVAE91NDxCxEmJI+wSpvD6KopPC7IIBH2rAd89PKx3Vy6uldIo+FBNCmoYzAXUToL jGOo7wKIdejTJ/v+8ur4QXNiVcjoUM16eg0YjCoxH9wbMfuDiIPknT+HzGKkJoGbIzGn l3HA== X-Received: by 10.68.58.97 with SMTP id p1mr41574351pbq.144.1374656378743; Wed, 24 Jul 2013 01:59:38 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id jb2sm46698685pbc.8.2013.07.24.01.59.34 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Jul 2013 01:59:37 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Subject: [PATCH v4 1/1] ARM: EXYNOS: Update CONFIG_ARCH_NR_GPIO for Exynos Date: Wed, 24 Jul 2013 14:13:25 +0530 Message-Id: <1374655405-22998-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQmGOe6I1U7RUdffNOB6uZcrWMqyREVHkTDOSRY0L0TgOkYzg5nbnxnhnv+hR4qtUceBqwp5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130724_050001_759780_05065DCA X-CRM114-Status: GOOD ( 11.40 ) X-Spam-Score: -1.9 (-) Cc: kgene.kim@samsung.com, patches@linaro.org, sachin.kamat@linaro.org, Tomasz Figa , kgene@kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP With the recent cleanup in Exynos platform code notably commits 17859bec ("ARM: EXYNOS: Do not select legacy Kconfig symbols any more") and b9222210 ("ARM: EXYNOS: Remove mach/gpio.h"), the definition of ARCH_NR_GPIOS got removed. This started causing problems on SoCs like Exynos4412 which have more than the default number of GPIOs. Thus define this number in KConfig file which takes care of current SoC requirements and provides scope for GPIO expanders. Without this patch we get the following errors during boot: gpiochip_add: gpios 251..258 (gpv0) failed to register samsung-pinctrl 106e0000.pinctrl: failed to register gpio_chip gpv0, error code: -22 samsung-pinctrl: probe of 106e0000.pinctrl failed with error -22 Signed-off-by: Sachin Kamat Cc: Tomasz Figa --- Changes since v3: Rearranged different default values in single line. --- arch/arm/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index f8fb910..ac9fa38 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1590,8 +1590,7 @@ config ARM_PSCI config ARCH_NR_GPIO int default 1024 if ARCH_SHMOBILE || ARCH_TEGRA - default 512 if SOC_OMAP5 - default 512 if ARCH_KEYSTONE + default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 default 392 if ARCH_U8500 default 352 if ARCH_VT8500 default 288 if ARCH_SUNXI