From patchwork Mon Jul 22 04:30:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2831025 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 B35AE9F243 for ; Mon, 22 Jul 2013 04:46:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E82DF20134 for ; Mon, 22 Jul 2013 04:46:55 +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 F0FF320117 for ; Mon, 22 Jul 2013 04:46:54 +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 1V181L-0001hP-Nc; Mon, 22 Jul 2013 04:46:52 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V181J-0005kw-Aj; Mon, 22 Jul 2013 04:46:49 +0000 Received: from mail-pb0-f44.google.com ([209.85.160.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V181G-0005k2-E2 for linux-arm-kernel@lists.infradead.org; Mon, 22 Jul 2013 04:46:47 +0000 Received: by mail-pb0-f44.google.com with SMTP id uo1so6615343pbc.17 for ; Sun, 21 Jul 2013 21:46:24 -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=+TuTMJIIhMvSstKK/O6ML2LfPBiFBH9MCFgxX7foUqY=; b=Mmq3qb0OT5d6HVlzLQELiURfqno1SkanG5/m50uJdrqFGtLzSj7FpcKwk5R/8GQosK YO7AGDjsJUlqG80lGaOX/Nj62hXKIH+ba1Gq9MJ1TGEOzeMMXhMZDgfX0qkavHL3WAyj Tq5H4W5uDjJQ8/2dZACpvTHoZ35YBL8AChZl8ECrVkwljiYgR6VbPLjLBPlhzCKI8lok mH5wgZ1iznlMWHgF4lJ6acxrAwTAG2xrUfRNDAdTSPoSzPYzM4JUHnXzMHVkIC1IZqD0 YLXx97INnWGdg+jFD6AgS79RLxPP03GUtbO7VhR4bjpBk4yMXakdRC1BMhfbqGLJl/FS 2kEg== X-Received: by 10.66.144.104 with SMTP id sl8mr30064219pab.9.1374468384909; Sun, 21 Jul 2013 21:46:24 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id qu10sm33422951pbb.12.2013.07.21.21.46.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Jul 2013 21:46:24 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH v2 1/1] ARM: EXYNOS: Update CONFIG_ARCH_NR_GPIO for Exynos Date: Mon, 22 Jul 2013 10:00:14 +0530 Message-Id: <1374467414-25801-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlZ5970sCwMxfIz46LHIFY8jUbdYGPAxC1X5ni2n6y9DZm4SAgQ6sbZu8IMmCx4+6ZM4vLl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130722_004646_577173_F19DFE01 X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: -2.6 (--) 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.6 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. 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 v1: * Changed default number to 285 (as required by 4412). --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ba412e0..f4841a2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1605,6 +1605,7 @@ config ARCH_NR_GPIO default 392 if ARCH_U8500 default 352 if ARCH_VT8500 default 288 if ARCH_SUNXI + default 285 if ARCH_EXYNOS default 264 if MACH_H4700 default 0 help