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: 18548 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3FCD625E19 for ; Wed, 24 Jul 2013 08:59:41 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id c1sf156627qcz.5 for ; Wed, 24 Jul 2013 01:59:40 -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=PPYTa99iTGPkWILSwbu/9Wg4jSzGA4CE770muJUf82k=; b=njKE2M2M43cTJ+y5hvYziu+DkId80Qhiw1DJlPJs0PTzPTrUVMKDrXL7h/Ez+RTEMN vbxUPM+vmmVB+cTw0dy1QFSQNvQSyh7qE4peyn0FpTb59MW8C8LCFl0YKZpzvm3S+pO6 klIAz+uMJapwFMmPWFUDJD8ClNVlKWmeITYEvdthhWWArqUjXexoZ+bCaKciFPCWkSY0 0rkkh59/8+rn+d+GlifNwks5RHgPlpbLOMo+iXQlxAT52On5IHt4eSAtrEcn4euJYFB6 YYheeYrUPIzJK/ybHNCOXeESYbhlkXGLBIl/NCmRR19XTrmUuEohcIU1kXQVgkczS0s5 AtLw== X-Received: by 10.236.153.202 with SMTP id f50mr20154493yhk.48.1374656380493; Wed, 24 Jul 2013 01:59:40 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.107.129 with SMTP id hc1ls141510qeb.78.gmail; Wed, 24 Jul 2013 01:59:40 -0700 (PDT) X-Received: by 10.52.96.195 with SMTP id du3mr11293298vdb.71.1374656380376; Wed, 24 Jul 2013 01:59:40 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id zx19si9622459veb.63.2013.07.24.01.59.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Jul 2013 01:59:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id gf11so2296829vcb.11 for ; Wed, 24 Jul 2013 01:59:40 -0700 (PDT) X-Received: by 10.220.67.10 with SMTP id p10mr13227058vci.85.1374656380273; Wed, 24 Jul 2013 01:59:40 -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 yu8csp17085veb; Wed, 24 Jul 2013 01:59:39 -0700 (PDT) X-Received: by 10.66.154.195 with SMTP id vq3mr14646355pab.69.1374656379194; Wed, 24 Jul 2013 01:59:39 -0700 (PDT) Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by mx.google.com with ESMTPS id mp5si25406445pbc.183.2013.07.24.01.59.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 24 Jul 2013 01:59:39 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.49 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.49; Received: by mail-pb0-f49.google.com with SMTP id jt11so9393584pbb.8 for ; Wed, 24 Jul 2013 01:59:38 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, kgene@kernel.org, kgene.kim@samsung.com, patches@linaro.org, sachin.kamat@linaro.org, Tomasz Figa 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: ALoCoQnDvknhCutrs+pPMXlesnIAnPKfwW/OapaiDDSoMh7cAiXCzpYs/WT36+TqLmxDlbndpog0 X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 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 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