From patchwork Mon Jun 24 06:13:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2768761 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EAE699F3A0 for ; Mon, 24 Jun 2013 06:29:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 161EE2010B for ; Mon, 24 Jun 2013 06:29:38 +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 14BD920108 for ; Mon, 24 Jun 2013 06:29:37 +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 1Ur0HM-0004Qa-Fe; Mon, 24 Jun 2013 06:29:32 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ur0HJ-0007BM-Qu; Mon, 24 Jun 2013 06:29:29 +0000 Received: from mail-pb0-x22c.google.com ([2607:f8b0:400e:c01::22c]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ur0HG-0007Ar-0n for linux-arm-kernel@lists.infradead.org; Mon, 24 Jun 2013 06:29:26 +0000 Received: by mail-pb0-f44.google.com with SMTP id uo1so10535653pbc.3 for ; Sun, 23 Jun 2013 23:29:02 -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=fcZ8O7YiuLfoHBZYhZD5qlPcd3hs3V3PnP7gqTdMGV0=; b=oY85tgxSr6jyespIVXPmS1/9VM64HzSBk+hz83PCcMJRUYMzHiWZiAwoxbFxfsn3Jq KOMQeYKWKwNSFOKgdJc1amhH2xiMkXl6GQqG2KhFcJcgyAEswAs//Q8do+JBrIiCbijX qC1R37I1ixRnfX0KU2YZ27fXdqUon2PIUKepSPne41YsH7KW6/PVdG8KMPMTeeSA+jRP tDOKnkA6g6cJhlYlAIw3XN+j3O+9guClm4a9oW4k1BKxuGEMa6V+0zgNCIvNMDLGpZnl hDAeBjoSqghiSPA8FRdON0FgHiZ7Kdcujf0M5MdNsUFdCRQ1ulsaq8wlyoixOBJ5QZ0G Oqig== X-Received: by 10.68.110.227 with SMTP id id3mr1852440pbb.106.1372055342622; Sun, 23 Jun 2013 23:29:02 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id yj2sm16604769pbb.40.2013.06.23.23.28.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Jun 2013 23:29:01 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH 1/1] ARM: EXYNOS: Update CONFIG_ARCH_NR_GPIO for Exynos Date: Mon, 24 Jun 2013 11:43:58 +0530 Message-Id: <1372054438-15693-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlUK5FAYQomEua4aoYZXvZ5u/Ge0fG2Dhg1wwKbrmUy1XT4Fwms/dPiJ16J/n1lDg36KQf2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130624_022926_160520_6DC7E479 X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -1.9 (-) Cc: sachin.kamat@linaro.org, Tomasz Figa , kgene.kim@samsung.com, patches@linaro.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=-5.3 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 (285) than the default number of GPIOs (255). Thus define this number in Kconfig file. 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 --- Based on Kukjin's for-next tree. --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ddf2667..380a53b 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1578,6 +1578,7 @@ config ARCH_NR_GPIO default 512 if SOC_OMAP5 default 392 if ARCH_U8500 default 352 if ARCH_VT8500 + default 288 if ARCH_EXYNOS default 288 if ARCH_SUNXI default 264 if MACH_H4700 default 0