From patchwork Wed Apr 19 17:35:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9688399 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 BE349602C9 for ; Wed, 19 Apr 2017 17:36:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2A36280B0 for ; Wed, 19 Apr 2017 17:36:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A78DA2842B; Wed, 19 Apr 2017 17:36:36 +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 8B003280B0 for ; Wed, 19 Apr 2017 17:36:35 +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=fNjreOTC0rXXGHWK/AACVT/+dskgiZDEz3hov1BGiIs=; b=gzY X+dxmQLsXSSvIuPC9jqc8JOggP+RXmDhuNg4wOPfseHAo9bf+y1bvCnUk8qNe7zST1SfEE98/IYTc jpoe3ZHNcIiUVgGVLWJckWfgF+lWktcQzndFKpLu0dqnbMVGeAZ85yjuBAnp44a8bj1YeDIxeAGWR wbxqMwCP6BTPqlpsSrJTLq8h5kYHXDDBzavfeh/WSv0E46id2mhNbPFDaR0soLV+K+ih/WIxPFeEH VPQDlv4okiLf/lELTCQKe92BzU05S2Y4LIQ5r+UcylDsFi/jCEO+JWu9ri+whMzPqdfSfiz9+k+c9 hJomrcHBFDWGgMwfvFM2W2Byx/f81yQ==; 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 1d0tWs-0006Wk-IZ; Wed, 19 Apr 2017 17:36:34 +0000 Received: from mout.kundenserver.de ([212.227.126.135]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d0tWg-0006JJ-2s for linux-arm-kernel@lists.infradead.org; Wed, 19 Apr 2017 17:36:24 +0000 Received: from wuerfel.lan ([78.42.17.5]) by mrelayeu.kundenserver.de (mreue005 [212.227.15.129]) with ESMTPA (Nemesis) id 0LehC6-1cEuZP13yo-00qQcQ; Wed, 19 Apr 2017 19:35:57 +0200 From: Arnd Bergmann To: arm@kernel.org Subject: [PATCH] arm64: sunxi: always enable reset controller Date: Wed, 19 Apr 2017 19:35:36 +0200 Message-Id: <20170419173601.3773999-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:o5WtCBHnzGha0RBs+kCxM/GuIONDbYWOkkCvqZNQuHPnfO9FVbF lrHxkuGpDJ0f4wCeVl74IeKn10iU1q+ZgAz4BLRSASnUPv3y86cjpxe8kOJ2etOkWjejZ5Z J3b9dBBe69Jarud8pkgMNT/dNRJkoEBaT1yvf1hfeTHMHSHVVu/Qs4mrr9ojdzKef62g8js bCtCSCEpAhNAn8DYpwJtw== X-UI-Out-Filterresults: notjunk:1; V01:K0:NnFNk2grx7c=:vORPcugTYAQQhpCgeA55l7 4KHondAOcENsSU0KMZV7Bqbhh3f+cCh1zkkWilalYWxqBMpA3ebC6sGlCw+cUEK4c1twPSh9V 1cSj36Yl6HYOstnBWcE+tueo9fA6nxNQRSbM3M/EgQcJMz8BqD/1Aguzofthaq4Phg35Gh5HD HPyDFTQoHK8eBUjHYPdxvSK3fNU+DOuo6GgtueR/lXFgesc1KvXs+QYE8h6OkfRLgNggz8xWj UTPlmRmz6lhSZqrHLghWUTQIAbjhDQJklqEviwb/5Pmgr80RsJUakggYlXiLRAV1GBr9rwrPs ZWgYn0bj8XRxNIZ2vd7hEDhESMSvtSoZAjixh0GuFjw8qOOoDb1WM/LjdhSoPgF+/781l67Xx S4Um2AW82a4MLNnZIEjHsjyJ6qtrH967HcEAfKHg7w+grfhcsoc3fFYsUeQ2SLVCRPeEiidQd k2NsS1guujtjnS24q8DnvGhiYEcUhWsVRWuZ9irB5/WqKUzvpkipyw0X7qKPQ/CXoDXJwwFf2 hYOBBjXMNJCSm1nzvixpHeAAX0f9znVp+YoZV629RD8UqbKPtfapeI4reVPYVeCAPEKmABcul ZcmDK76kNRw2wtzr4pNLGSqSAYNQml00tdseOCRMMSCI7/Ge8Pb+H+6bRSSnpu2HF2OMamvrs cYLanXmkjLNL1+sGqwLSoGV1Cgk3+RBTUuDLjrHPda2TfrkZqqR2TinMJBZj22HDPPv4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170419_103622_457383_E2CA3511 X-CRM114-Status: GOOD ( 12.19 ) 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: Arnd Bergmann , Catalin Marinas , Will Deacon , linux-kernel@vger.kernel.org, Maxime Ripard , linux-arm-kernel@lists.infradead.org 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 The sunxi clk driver causes a link error when the reset controller subsystem is disabled: drivers/clk/built-in.o: In function `sun4i_ve_clk_setup': :(.init.text+0xd040): undefined reference to `reset_controller_register' drivers/clk/built-in.o: In function `sun4i_a10_display_init': :(.init.text+0xe5e0): undefined reference to `reset_controller_register' drivers/clk/built-in.o: In function `sunxi_usb_clk_setup': :(.init.text+0x10074): undefined reference to `reset_controller_register' We already force it to be enabled on arm32 and some other arm64 platforms, but not on arm64/sunxi. This adds the respective Kconfig statements to also select it here. Signed-off-by: Arnd Bergmann --- arch/arm64/Kconfig.platforms | 2 ++ 1 file changed, 2 insertions(+) I'd suggest we can pick this up in arm-soc as a non-urgent bugfix for 4.12 diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index b3a1fb8df925..4afcffcb46cb 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -2,8 +2,10 @@ menu "Platform selection" config ARCH_SUNXI bool "Allwinner sunxi 64-bit SoC Family" + select ARCH_HAS_RESET_CONTROLLER select GENERIC_IRQ_CHIP select PINCTRL + select RESET_CONTROLLER help This enables support for Allwinner sunxi based SoCs like the A64.