From patchwork Tue Feb 28 19:08:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 9596607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0FEBC60453 for ; Tue, 28 Feb 2017 19:09:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFEE328560 for ; Tue, 28 Feb 2017 19:09:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E466C28564; Tue, 28 Feb 2017 19:09:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 65E6128560 for ; Tue, 28 Feb 2017 19:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=qx9WO91XVQRtwYzHMUjCAgQlept5IPvrfXHsuURPXd8=; b=E4S ZMKUtuJqq2cUAY9LIaIgZigqcBhmLjQvtOuvlDMLDY5q59mMnZm/To7jBbFnk4jnoJgMBuTDhdYji BHx9IOcG5L38rAjFGR9zhklNbgoAvOeKk5XTriRLqmbRKhFaySKEi/vyEofbYYUL2oDXkutv7lJEQ anA138lGzZK5AVrpXJcEwGWVQkSlcGMDYCW2irMpXiYDeQgiR+/0MVwNDOtVrGQeBkKSrA6Y5EShX jgZmZCwuTkLpR8TQrGmMHMNLlKYr5h8j52BRbODw1GzNaLhvL2q758ogKZlEQFA5kR/w4dwTgj4vC +IEeAPZrTvETUVdyUvXxwwtTkotOHrQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cin9B-0007Hr-JD; Tue, 28 Feb 2017 19:09:17 +0000 Received: from forward17j.cmail.yandex.net ([5.255.227.236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cin98-0007GM-Cl for linux-arm-kernel@lists.infradead.org; Tue, 28 Feb 2017 19:09:16 +0000 Received: from smtp3m.mail.yandex.net (smtp3m.mail.yandex.net [IPv6:2a02:6b8:0:2519::125]) by forward17j.cmail.yandex.net (Yandex) with ESMTP id 893FA20CEC; Tue, 28 Feb 2017 22:08:49 +0300 (MSK) Received: from smtp3m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3m.mail.yandex.net (Yandex) with ESMTP id 2442C2840DDE; Tue, 28 Feb 2017 22:08:42 +0300 (MSK) Received: by smtp3m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id IiqDS607sX-8bsq4WQU; Tue, 28 Feb 2017 22:08:41 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aosc.xyz; s=mail; t=1488308922; bh=+uMgeldoZbNp7op+Hn4dbYzLS6wiLQ3Hg0wKah6z0Yg=; h=From:To:Cc:Subject:Date:Message-Id; b=qcE18fo1Jcmshap9SDworUjfpEA8YAfccMh8rpuDeKXwH3eyRalNahAygXo79NTTL Qoz0IKQRLWHwHqnatJGQFHh4Sg9NWTwo+ygJMwJDChk+Lc6Oz61l8kj7RXxVcMnzzD aUCwqSnzOmJzdWmb7deb40QU79JL9D0ErFtIJS/U= Authentication-Results: smtp3m.mail.yandex.net; dkim=pass header.i=@aosc.xyz X-Yandex-ForeignMX: BR X-Yandex-Suid-Status: 1 0,1 0,1 0,1 0,1 0,1 0,1 0,1 0,1 1130000036118848 From: Icenowy Zheng To: Linus Walleij , Maxime Ripard , Chen-Yu Tsai , Andre Przywara Subject: [PATCH] pinctrl: sunxi: select GPIOLIB Date: Wed, 1 Mar 2017 03:08:15 +0800 Message-Id: <20170228190815.10699-1-icenowy@aosc.xyz> X-Mailer: git-send-email 2.11.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170228_110914_642808_060013B5 X-CRM114-Status: UNSURE ( 8.57 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-gpio@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Allwinner pin controllers are also GPIO controllers. Currently, if GPIOLIB is forgot to be chosen, the build of pinctrl-sunxi.c will fail for lacking a lot of gpiochip_* functions. Select GPIOLIB to ensure this driver can be built. Signed-off-by: Icenowy Zheng --- This bug is found when I try to add sunxi drivers on an ARM64 allnoconfig, in order to prove that sunxi-ng ccu driver depends on reset_controller framework. I proved the latter dependency, but how to satisfy it still needs some discussion. drivers/pinctrl/sunxi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/sunxi/Kconfig b/drivers/pinctrl/sunxi/Kconfig index 816015cf7053..e25d0daa660a 100644 --- a/drivers/pinctrl/sunxi/Kconfig +++ b/drivers/pinctrl/sunxi/Kconfig @@ -4,6 +4,7 @@ config PINCTRL_SUNXI bool select PINMUX select GENERIC_PINCONF + select GPIOLIB config PINCTRL_SUN4I_A10 def_bool MACH_SUN4I