From patchwork Mon Jul 22 04:30:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2831024 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 AD9619F243 for ; Mon, 22 Jul 2013 04:46:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9947920134 for ; Mon, 22 Jul 2013 04:46:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B4EE20117 for ; Mon, 22 Jul 2013 04:46:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754208Ab3GVEqZ (ORCPT ); Mon, 22 Jul 2013 00:46:25 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:59151 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752954Ab3GVEqZ (ORCPT ); Mon, 22 Jul 2013 00:46:25 -0400 Received: by mail-pd0-f171.google.com with SMTP id y14so6365810pdi.16 for ; Sun, 21 Jul 2013 21:46:24 -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=+TuTMJIIhMvSstKK/O6ML2LfPBiFBH9MCFgxX7foUqY=; b=F0XgcooGTOxac0L0nlix+WiRLdzpXf5jED6sIAY90sz2sX+2ge6udbfs/HDrChxdOJ tk3DahA+IaZ4mE1WoZoHJy+dWxaQvXmDa3LTJl3jbX4c8Q0Q2IAeKyTmv8iOp7kndtxw h4v6a9W64wTg+PMS/w4dWMIXihJLnquBH5IC2dUDt2kM3EuRhwiHUfVEdu4HYge7Y2BV wKifu10hpzULGFY4dP+jt8OJHsPeB1HL6eNYlHp9m2I/SOB/jFhWxH7EfOZDe7aiWe88 SCpYIdo0+tQQWfAYdDr4YgMbZbg4/vMVfsLBaQ0jbxOpqUwqix2c3d2jo4erMdJTDb3n YlwA== X-Received: by 10.66.144.104 with SMTP id sl8mr30064219pab.9.1374468384909; Sun, 21 Jul 2013 21:46:24 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id qu10sm33422951pbb.12.2013.07.21.21.46.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 21 Jul 2013 21:46:24 -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 v2 1/1] ARM: EXYNOS: Update CONFIG_ARCH_NR_GPIO for Exynos Date: Mon, 22 Jul 2013 10:00:14 +0530 Message-Id: <1374467414-25801-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQk15zUqhyur2g1r8tjoZZkUKjLne0jnRfrQx2aVZrPwKRVlZRdpZeDGSmLTQsp55s0iSZgn 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=-8.3 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. 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 v1: * Changed default number to 285 (as required by 4412). --- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index ba412e0..f4841a2 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1605,6 +1605,7 @@ config ARCH_NR_GPIO default 392 if ARCH_U8500 default 352 if ARCH_VT8500 default 288 if ARCH_SUNXI + default 285 if ARCH_EXYNOS default 264 if MACH_H4700 default 0 help