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: 2832509 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8606CC0319 for ; Wed, 24 Jul 2013 03:48:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A474120222 for ; Wed, 24 Jul 2013 03:48:19 +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 9B00620218 for ; Wed, 24 Jul 2013 03:48:18 +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 1V1q3i-0007f2-5g; Wed, 24 Jul 2013 03:48:14 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1V1q3f-00088x-Sy; Wed, 24 Jul 2013 03:48:11 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V1q3c-00088Y-OT for linux-arm-kernel@lists.infradead.org; Wed, 24 Jul 2013 03:48:09 +0000 Received: by mail-pa0-f52.google.com with SMTP id kq13so139365pab.25 for ; Tue, 23 Jul 2013 20:47:46 -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=Ev0QcZqKaEbXvObthTcuvO4f4UTQEp8n/CWiQuEC+fg=; b=JEG7DVBghsgDiRXX853gQ+j8jEX6cZe/U/vzOT9SbIDpy9y+Jhp7xMHDRJYeC5o3GX CkOyr5nElgiYheomQwLd+4GEVA11BquumLGNMoRbtwreChv70kg+y6BgXaxE4XP9/7XP BSXn5bT+fnFhR2YA7hAk7CdFs0Scs1Z6E/Khx/91Fh0c9p8N/RvBAgYbRGkuxM/b+nEH oXKAdJQgkR7omuv1SxbRUs7ANsbAWyMHHbHi6moEcdtbhzAw/2vWt70EX5avJ1Iotirp 6grfv3qqyX4rcwXGT6dA9pUVD9ziUP+1yyd1PvK2wjtMRa7ehn99Nsig7RUHGzs4Eoep nEjQ== 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 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: ALoCoQkhFoNI8/atzgG6ylJj0n+JeygAFIm72GsPiqRHxKpF5ryIoiDJttQa2aqLz6MgVaqRrth4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130723_234809_088558_C3E2F0B7 X-CRM114-Status: GOOD ( 10.85 ) X-Spam-Score: -2.6 (--) Cc: sachin.kamat@linaro.org, Tomasz Figa , kgene@kernel.org, linux-arm-kernel@lists.infradead.org, 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=-4.2 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 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