From patchwork Mon Jul 17 13:39:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9845075 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 1902860393 for ; Mon, 17 Jul 2017 13:40:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B7A127C05 for ; Mon, 17 Jul 2017 13:40:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F323E28503; Mon, 17 Jul 2017 13:39:59 +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 8A53728502 for ; Mon, 17 Jul 2017 13:39:59 +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=2D0bvgm4qdf1YqiFpL4DiVnynRyfVRLTsjbOPuAYw3c=; b=Jmu HMWelOEz5aYZ+POIZine1soOzBhP1/VnbRIBZn39c7IHXLKN184nh+QXxgYga7CtrWpOCaGbjuGxt gyjS6/oUXse+jX2lYkuXks0u5tCAuicA+WwIT11le5E/907+XrGgnENBBYiYfa5ieOATA2GqNQkbY 1iWnvqVk8zNjNRbi9tiULZgIEbbWoiku64VjQ8123eZB4hhxkSqeT/BLa/P9MzXict6TyQwPvY+1Y rkhF7ZAZNmifevHpD+pSvvy8x3edAyF4ZO4jBdQGAh/RrfHSWGFVYAumaRpFX/dAprXdSv9BLaIwe TNj/P5iCX3svUau3gjq9H3tL2vvLYOA==; 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 1dX6Fg-0004Lx-15; Mon, 17 Jul 2017 13:39:56 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dX6Fc-0004Kh-DW for linux-arm-kernel@lists.infradead.org; Mon, 17 Jul 2017 13:39:53 +0000 Received: from ayla.of.borg ([84.195.106.246]) by michel.telenet-ops.be with bizsmtp id lpfV1v00N5JzmfG06pfVNV; Mon, 17 Jul 2017 15:39:30 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1dX6FF-0007qo-DE; Mon, 17 Jul 2017 15:39:29 +0200 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1dX6FF-0003Sd-Bf; Mon, 17 Jul 2017 15:39:29 +0200 From: Geert Uytterhoeven To: Jonathan Corbet , Russell King Subject: [PATCH resend] Documentation: arm: Replace use of virt_to_phys with __pa_symbol Date: Mon, 17 Jul 2017 15:39:28 +0200 Message-Id: <1500298768-13262-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170717_063952_631884_0CDCC1BE X-CRM114-Status: UNSURE ( 6.67 ) 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: Florian Fainelli , Geert Uytterhoeven , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Laura Abbott , 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 All low-level PM/SMP code using virt_to_phys() should actually use __pa_symbol() against kernel symbols. Update the documentation to move away from virt_to_phys(). Cfr. commit 6996cbb2372189f7 ("ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol") Signed-off-by: Geert Uytterhoeven Acked-by: Florian Fainelli --- Documentation/arm/firmware.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/arm/firmware.txt b/Documentation/arm/firmware.txt index da6713adac8acffc..7f175dbb427e631a 100644 --- a/Documentation/arm/firmware.txt +++ b/Documentation/arm/firmware.txt @@ -60,7 +60,7 @@ Example of using a firmware operation: /* some platform code, e.g. SMP initialization */ - __raw_writel(virt_to_phys(exynos4_secondary_startup), + __raw_writel(__pa_symbol(exynos4_secondary_startup), CPU1_BOOT_REG); /* Call Exynos specific smc call */