From patchwork Wed Jul 24 03:31:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 18546 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f71.google.com (mail-qe0-f71.google.com [209.85.128.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7735725E75 for ; Wed, 24 Jul 2013 03:47:49 +0000 (UTC) Received: by mail-qe0-f71.google.com with SMTP id 1sf1074026qee.2 for ; Tue, 23 Jul 2013 20:47:49 -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=Ev0QcZqKaEbXvObthTcuvO4f4UTQEp8n/CWiQuEC+fg=; b=WNqsZwdjIoeLFx23vnVL9Uv5TLW+6vrsBHh/PXSqbAJfAmml4JCaYz6yk3TvLnHeGs wo4zEGmMrTbeYVVtau1nxzC7c4yTwldfzOYk/PFLwu2odl80bA+4tIfCh7D/TmdDCaIT Pv3chrzIKEPr1baWpAGecXlH1LW2qkjBpz9SS8t/ntSIq3G0wchrpJeYvmhlDs650+wa bw/2xQnD5Ybnd21ZI+jeNUtwFFOjhEAD0z6C+DRLsSk65MWeflSwvWaYs2z53W0j7ZEk fkuiUrsiVxNoIjvACTVCly8byU444NUtZG2NPMb5LKhtTTLd2dljrCNAzdwps9botbck xn1Q== X-Received: by 10.236.41.103 with SMTP id g67mr19823214yhb.45.1374637669068; Tue, 23 Jul 2013 20:47:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.39.201 with SMTP id r9ls73700qek.72.gmail; Tue, 23 Jul 2013 20:47:49 -0700 (PDT) X-Received: by 10.220.104.74 with SMTP id n10mr5600311vco.74.1374637668962; Tue, 23 Jul 2013 20:47:48 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id im6si9323850vdb.72.2013.07.23.20.47.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Jul 2013 20:47:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id jz10so77128veb.12 for ; Tue, 23 Jul 2013 20:47:48 -0700 (PDT) X-Received: by 10.52.95.113 with SMTP id dj17mr11094811vdb.82.1374637668622; Tue, 23 Jul 2013 20:47:48 -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 yu8csp8051veb; Tue, 23 Jul 2013 20:47:48 -0700 (PDT) X-Received: by 10.66.240.104 with SMTP id vz8mr40241831pac.143.1374637667290; Tue, 23 Jul 2013 20:47:47 -0700 (PDT) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) by mx.google.com with ESMTPS id ib1si24464696pbc.220.2013.07.23.20.47.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Jul 2013 20:47:47 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.176 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.176; Received: by mail-pd0-f176.google.com with SMTP id t12so8841031pdi.35 for ; Tue, 23 Jul 2013 20:47:46 -0700 (PDT) X-Received: by 10.68.191.231 with SMTP id hb7mr38135716pbc.82.1374637666733; Tue, 23 Jul 2013 20:47:46 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id om2sm45012887pbb.34.2013.07.23.20.47.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Jul 2013 20:47:46 -0700 (PDT) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, kgene@kernel.org, patches@linaro.org, sachin.kamat@linaro.org, Tomasz Figa Subject: [PATCH v3 1/1] ARM: EXYNOS: Update CONFIG_ARCH_NR_GPIO for Exynos Date: Wed, 24 Jul 2013 09:01:33 +0530 Message-Id: <1374636693-32336-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnpCeRcInnEEZ9oDyUmlHHCleArDIiMkcPTgvF57ejgTTbm1gEPGz+AUSk4FhKwmJFZ0WtD X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 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 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 v2: Changed the default number to 512 to accomodate GPIO exapnders. --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ccc388d..b3c4fa4 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1601,6 +1601,7 @@ config ARCH_NR_GPIO int default 1024 if ARCH_SHMOBILE || ARCH_TEGRA default 512 if SOC_OMAP5 + default 512 if ARCH_EXYNOS default 512 if ARCH_KEYSTONE default 392 if ARCH_U8500 default 352 if ARCH_VT8500