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: 150989 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4641299ljp; Tue, 13 Nov 2018 09:03:07 -0800 (PST) X-Google-Smtp-Source: AJdET5fFQnnylATZHlDUVf4iIDFcdr9YVBNBFErMcu6aAw4eAHTw2eHionjFcb/iP/kI0YpyUvlL X-Received: by 2002:a63:a552:: with SMTP id r18mr5446673pgu.176.1542128585415; Tue, 13 Nov 2018 09:03:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542128585; cv=none; d=google.com; s=arc-20160816; b=KDb+aVzwZctHuTiZoqfMUxxIvQS2SkXnF/pKjh6167ziIRdy61Kc52Atg4urKT3xHJ DAcR7xkXyjfWlCkaEY1MLKRy3bKgDaEAheiRwaXnZKwDHtsTIipNvP5kBoxGUsHwDFyr cBc/y9qP7qgq/oGxFkyzKLuhNQFh4pv2zZ0L2hUCuU1KJ3MhKs8mMMN6oS1kYAGcYl5y 65ekRL8EFE2HpNPNahPJd3vW+BJiKKnm/EO9+VPioofykRrRs4XR/jRFqyzJSNao5BVw BwmxJL4WmlbYRO5XWy/HPFvuzw+Wid//EHxy28kKMLRHekJYMZuFjUzhSSzGOYkenIY5 X+AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=L3kEd7nqCgrtwJyeFwFTKoUqfJFQDq8k6b4rFMb07q0=; b=pFIIQ4QeEoaxN9Xib4fQn5hz4vR8rbVRqE2jbIg5Qo4VEiceXMbrcm0Z94m5cTIVh7 kMKf2M8/GrxV85UetQzuigkYXm+NeZixqWIEUOv1JAIDi3+HAo66IPg8+bZtyPKvAGxb UNFL+IN7Hf3u1YvG4cWqi4s1PtwxKR/KXJiXB/T91pghs3XXfEzaAPZQgIuBiFXUQ9SR rgVAozMC18OCH/tOfgJDLrUvG/RprjYnyVQdOiihBifyoFq37Fto9Jd90DS7Kr8gUfzY C5YnSE8D/StXVZnr+R5brji8PnXF3aOUbbTSXiAmgyK9kMc/unsrkRhDB/qRlWcS659g +CPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t24-v6si631984plo.191.2018.11.13.09.02.59; Tue, 13 Nov 2018 09:03:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731367AbeKNDBy (ORCPT + 32 others); Tue, 13 Nov 2018 22:01:54 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:14656 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727042AbeKNDBx (ORCPT ); Tue, 13 Nov 2018 22:01:53 -0500 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: , , , CC: , , , John Garry 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 1.9.1 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.