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: 18051 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-fa0-f71.google.com (mail-fa0-f71.google.com [209.85.161.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 358CC25E0F for ; Mon, 24 Jun 2013 06:29:07 +0000 (UTC) Received: by mail-fa0-f71.google.com with SMTP id v1sf10003541fav.6 for ; Sun, 23 Jun 2013 23:29:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=fcZ8O7YiuLfoHBZYhZD5qlPcd3hs3V3PnP7gqTdMGV0=; b=dGyrwyN8dxUB8wIcFqzK7F58xS2VaKGEhSJ3jclEGWxZA1VfB7eJKKoEacrC3Tttaa A/3PB2CibzBvXPIUPBErxQxLxtg8JVETIAHsMLe0ysV671D7wXXNhc9lZFD0PcQlRaMe kARQitTu6QZIxTvAsmSQZ+RxtirFZpED10xa88mOLPi9eeSxt6TaZJHs/M1BNji6AgOT LnBo/sYazgMA/69fbgL9oEwGJhY3N9Z99hdGqmdDBzJRz6+YBKZBtwl/2xmdyWHYcJ6x CORYBr9peEA5xmR9gjF8PMZIZEpl8+lIjgHHBUEM0P/w8MbCDUd53pkKJ2QYQCPHBXR5 GU/g== X-Received: by 10.180.185.132 with SMTP id fc4mr3101103wic.7.1372055345917; Sun, 23 Jun 2013 23:29:05 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.185.78 with SMTP id fa14ls786289wic.46.gmail; Sun, 23 Jun 2013 23:29:05 -0700 (PDT) X-Received: by 10.194.104.199 with SMTP id gg7mr15871829wjb.56.1372055345533; Sun, 23 Jun 2013 23:29:05 -0700 (PDT) Received: from mail-ve0-x232.google.com (mail-ve0-x232.google.com [2607:f8b0:400c:c01::232]) by mx.google.com with ESMTPS id n2si5632511wjq.118.2013.06.23.23.29.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Jun 2013 23:29:05 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::232; Received: by mail-ve0-f178.google.com with SMTP id pb11so8432309veb.9 for ; Sun, 23 Jun 2013 23:29:04 -0700 (PDT) X-Received: by 10.220.53.7 with SMTP id k7mr10352435vcg.52.1372055344484; Sun, 23 Jun 2013 23:29:04 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp15633veb; Sun, 23 Jun 2013 23:29:04 -0700 (PDT) X-Received: by 10.68.60.104 with SMTP id g8mr22336163pbr.55.1372055343399; Sun, 23 Jun 2013 23:29:03 -0700 (PDT) Received: from mail-pa0-x231.google.com (mail-pa0-x231.google.com [2607:f8b0:400e:c03::231]) by mx.google.com with ESMTPS id ta8si8513899pac.15.2013.06.23.23.29.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Jun 2013 23:29:03 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c03::231 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c03::231; Received: by mail-pa0-f49.google.com with SMTP id ld11so10409808pab.8 for ; Sun, 23 Jun 2013 23:29:02 -0700 (PDT) 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 Cc: kgene.kim@samsung.com, sachin.kamat@linaro.org, patches@linaro.org, Tomasz Figa 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: ALoCoQk10vUqkUbCrDPTwuDRRLmI8bphttAJnGiIo0eT0ViAeUuv/L1WfNSkv7I2Ns4R1lF2rLyd X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::232 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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