From patchwork Thu Jul 20 15:49:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 108392 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2304758qge; Thu, 20 Jul 2017 08:50:20 -0700 (PDT) X-Received: by 10.101.85.79 with SMTP id t15mr4348468pgr.95.1500565819796; Thu, 20 Jul 2017 08:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500565819; cv=none; d=google.com; s=arc-20160816; b=OIXmV9D9HnSzTwQ9teQmz+AQ79bsDFUXKKh4N1w8ZasmbsY1Yi4ISie7SkkXd5l09J DN8+LrbqGG24ge85AzYHcY9TN4lCEogZ5BZdgOAuCEdrzF7U+x0zCz8SZHhZwhmtAL+3 Bh1uM18bW1DKAzXwO3YW5tgBBwLmva76mwJiiareDK1zc7xMZoCTmv5u8QtER27nga7f IUJ/6alA2PJGJYZntZViiFvnsCGj8+a4jhZSATT3f+po79oUb3skY65ibA6761tfv03l qPphC51Z0/bVqAV9o24OrcRwZvVVURCrOSBuFIBkVm+pQIV5VfRmgs966JwWwT6LpfbL eIcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=ZNXUrbs/OKNDZD6+1zDQW6dSzZ/QbzZNubWsXSwc/ws=; b=gEC5Rr9m2o9FSspz11R76UTKUblZyDDGO1Z2B9D1u7NPM424iwK1jiZCD/S9zUQDzK aDHlVUWI1Oy06tmyKc9he41I+kg9aCkpEiCOkEBQIzARThxG2B0RNwYqwceBUDVz0w+Y /L1iNyrR0a2WtqtqVO3VG+94XQd3F1UDBpeXTidwQhyH5iraTrUy0Q1lzpuy1q+427xq ez73lQ57qMmAlusFh1u0t72ypFU7uLbypojMdcgsPYbGXIlknRh+5IZiABGsijhF2r40 6m0UxFfyJbndR3SeL/OJp0Qq3YkuFYSpK/dM9Zg4PXThU+D6INJoZ0QIqdAcbPQE6acX tI0w== 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 f72si1745551pff.403.2017.07.20.08.50.19; Thu, 20 Jul 2017 08:50:19 -0700 (PDT) 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 S965658AbdGTPuR (ORCPT + 25 others); Thu, 20 Jul 2017 11:50:17 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:62008 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936288AbdGTPuO (ORCPT ); Thu, 20 Jul 2017 11:50:14 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue001 [212.227.15.129]) with ESMTPA (Nemesis) id 0MTsps-1d7muC1N8S-00QROX; Thu, 20 Jul 2017 17:49:40 +0200 From: Arnd Bergmann To: Alexander Sverdlin Cc: Hartley Sweeten , Arnd Bergmann , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/12] ARM: ep93xx: use ARM_PATCH_PHYS_VIRT Date: Thu, 20 Jul 2017 17:49:27 +0200 Message-Id: <20170720154939.3250697-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170720154616.3250481-1-arnd@arndb.de> References: <20170720154616.3250481-1-arnd@arndb.de> X-Provags-ID: V03:K0:rv1UCwKPdU7/HWWac/nU844n1YUsvUnQIFWrwVk/0gdC/qhIRJd 0WnmgIwkejvk0DNLdQakUW+Zkxc9Oih7pNs86p1CIWSJ1p+l66hvmLFwOtz5EzFXowbdltW WR5byUYC81l8i6MiMkTmj+ra45i4Hh714rq/m7HzlKZ2L8Ocutz3n+OHEM6M10gzNLAckEx vVRPunuVRdBNJ1aEvUkAA== X-UI-Out-Filterresults: notjunk:1; V01:K0:t5fNKh5yYQo=:nKSpdMOgCmQQo3b0INtTfg eGX6jY82jZDVepFA6N2LUBM2orSUXoLataIDAOnV3DXtnsElZqY85L/TA7+05vZzrbSfY/89p dT3HfjG2NLx4WSHWcazqqzhftpmIef0mxGFcpCzd0qw7vSLoOJIFurpwArNeIELOaUSXM5E4H +bM4SrzUR/s4CGm38tv+huhQgnX25IR2aNS2g/ss2gKALNd2mexzqAGsKYbrb9I06/AVTIqnX 8D2NS79AOFYVT468KtGlLzqQpDQvqJHup3UJuiguWtWml0hPa258IIoACf4RgPohnC/+pYKbG WWuLlHoBHvpc//d9ehXexV13acnN29uA5rSuvUN6oGM5E1n/vXfBKS3+jwvu8FzTh56azjmcE JDFLBntK/+60u2UI4Wh9pqHq1YcjoICo21XszKy8tTrq4RS4avwN3MZr33N95adv2t+DfjmUo VrLD0A//qlEXSteLIMsPta3BjSG8HX4cCUx7mRP4ECOvFQ7y+7wuTZVrzbu/BnUMmW+FrrUxK MLHyexqVUTM2F+6w5fhyraW7taQIoqWHqLr4e1JgrB+3IxM4I3pkxTRBnEhM/jF9I1ajiYLt6 ncxsAu2FTlIHmwkJvy0Dnnr+Gvv3OuG/5l+YP9XOwAbYoppWAWerdx+1JjSltqqQdikSn6c27 OnfjLD/NeY+CAAfzjdu4Ai7EOBYmaPivXw/Wq+wmy8UK8GJ64xFLulrPgjahyDoZ0vkdQh9wr WpV4nxLDiGh5AnlDDV08S661db+PFMirCxmSFQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just like ARCH_MULTIPLATFORM, we want to use ARM_PATCH_PHYS_VIRT when possible, but that fails for NOMMU or XIP_KERNEL configurations. Using 'imply' instead of 'select' gets this right and only uses the symbol when we don't have to hardcode the address anyway. Signed-off-by: Arnd Bergmann --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 Acked-by: Alexander Sverdlin Acked-by: Linus Walleij diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index d6e6f40addf6..db856355bd24 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -406,7 +406,7 @@ config ARCH_EP93XX bool "EP93xx-based" select ARCH_HAS_HOLES_MEMORYMODEL select ARM_AMBA - select ARM_PATCH_PHYS_VIRT + imply ARM_PATCH_PHYS_VIRT select ARM_VIC select AUTO_ZRELADDR select CLKDEV_LOOKUP