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: 2832605 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 52F929F243 for ; Wed, 24 Jul 2013 08:59:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 54BE3200F7 for ; Wed, 24 Jul 2013 08:59:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6D795200F4 for ; Wed, 24 Jul 2013 08:59:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752308Ab3GXI7k (ORCPT ); Wed, 24 Jul 2013 04:59:40 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:63388 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751855Ab3GXI7j (ORCPT ); Wed, 24 Jul 2013 04:59:39 -0400 Received: by mail-pd0-f178.google.com with SMTP id w11so151595pde.9 for ; Wed, 24 Jul 2013 01:59:38 -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=PPYTa99iTGPkWILSwbu/9Wg4jSzGA4CE770muJUf82k=; b=jXax0/QAGtbHBnG5ez2CMYo8t6tFpwRIt0cwgSTJfBUbj3eeBstB0veSlNsMXGPtH4 e/4SgDkcSBZKePAPv7FWAnl5PrMhSMNghGNCdBEq7J9A1Y5UYlyAqqNxKckdMu5QQNXO y8ND/0DNUps1FDqKPRBUFTsLqk+FmS/R2XimjZso0IeZbW2V36HlC9skqAl2g/gsqCYv HppnmnsiwzCIu+ZGQ3lW8JcDFnUsUY+qCKFOtRdH4yfHo2uqAy+NzwfcG5DcgfWNI5+g /s5Sx5/UEteSrP5mTt8x3vgz31vDyJaLnlCsw3HmqnMz12zXoKjObCj8oe4d6w0DIVDf GeMA== 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: ALoCoQn+OmM0avzKcWAMkb8oC2DqnTaXkcs9UIJ5QgV9vIRXVTU1TDAivM9HYcFHjdtrTONGkxSJ Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 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