From patchwork Tue Nov 13 17:04:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 10681115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0350014E2 for ; Tue, 13 Nov 2018 17:03:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E02012AEAC for ; Tue, 13 Nov 2018 17:03:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2EDC2A7B4; Tue, 13 Nov 2018 17:03:31 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 69CCF2876D for ; Tue, 13 Nov 2018 17:03:31 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=nxQDfknkxcgYfdHm4EYoidLJzRLHyhQBBGK7cDKNCm4=; b=tI50/qUDVZIIQK C+Q0LHLvDN2DULjUZ1BvwGV7OwjVuuZqRnCwtDz8Hb/rD4D0kJRZFNGqh34En1sohHD3AoaHa47GS qDDm6R/lNbxbLEGg998iB3zeYZ1ltQzuXXrfZhv7FKT4I0UgV+aLWn1EE1qgRX9RIYNhWcXhmxonS spL/9epAy7yPlRil36alAmS32L3AlrHlIurUEbM53IYHhDDTbUNkB70BtruL8tjL2FLn19H8IHXJ0 ipEZIUaqqY8gpi34q56ZYMrwnzbdBYXy0cK5aQLI0pVIxYBe2ZDRhlVixGCpOaZDpN5rPfn5Tm3LY UDxwDlvWbBLlJRf8qsMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMc60-0002ey-74; Tue, 13 Nov 2018 17:03:24 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMc5y-0002eq-TH for linux-arm-kernel@bombadil.infradead.org; Tue, 13 Nov 2018 17:03:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=L3kEd7nqCgrtwJyeFwFTKoUqfJFQDq8k6b4rFMb07q0=; b=FobcQWwxHjfdqX7+sfNM9sGpOs xIXp1ptSzwLBz2Ro76StKc/ahn+qeHEK/6Qq1XREBjjiD3eio5FBusrtX3jtTrNmocc23OseB7MaE 7WijF0Q7Jxo5PGtuC0gulJcGCCHuTP5jX9PPoEu46XXOZTAQEJAcmyjNwbVqCtF3t9oUMCC6Th9Bf ++ONEsnUk77gtapifijPFPhrNLs+usnXJixLotDCEFGOfZ8BX2sIP88krCcbMhVdVKanNMqycmtG8 n9f0+msAtolpO2CcY/xPA6uIHCt16a+9q1ELmHo0QKU6Rh+FgPfo/cacs1wf0urnE56I5b0emnUQm V9COvicw==; Received: from szxga05-in.huawei.com ([45.249.212.191] helo=huawei.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMc5v-0007ZA-DE for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 17:03:21 +0000 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 124D29A8FF2D9; Wed, 14 Nov 2018 01:02:53 +0800 (CST) Received: from localhost.localdomain (10.67.212.75) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Wed, 14 Nov 2018 01:02:49 +0800 From: John Garry To: , , , Subject: [PATCH] arm64: sunxi: Enable REGMAP_MMIO to fix linker error Date: Wed, 14 Nov 2018 01:04:25 +0800 Message-ID: <1542128665-78302-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.67.212.75] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_120319_751555_EEA0A061 X-CRM114-Status: UNSURE ( 6.58 ) 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: John Garry , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, icenowy@aosc.io 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 following linker failure can be seen for a certain heavily reduced defconfig: drivers/soc/sunxi/sunxi_sram.o: In function `sunxi_sram_probe': drivers/soc/sunxi/sunxi_sram.c:353: undefined reference to `__devm_regmap_init_mmio_clk' drivers/soc/sunxi/sunxi_sram.c:353:(.text+0x3c4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `__devm_regmap_init_mmio_clk' It would seem that the sunxi sram driver implicitly depended on config REGMAP_MMIO. To solve, select config REGMAP_MMIO for ARCH_SUNXI. This seems a better option than selecting from the respective driver config as this just defaults to ARCH_SUNXI. Fixes: 5828729bebbb ("soc: sunxi: export a regmap for EMAC clock reg on A64") Signed-off-by: John Garry diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 51bc479..c8a6ad3 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -12,6 +12,7 @@ config ARCH_SUNXI select ARCH_HAS_RESET_CONTROLLER select GENERIC_IRQ_CHIP select PINCTRL + select REGMAP_MMIO select RESET_CONTROLLER help This enables support for Allwinner sunxi based SoCs like the A64.