From patchwork Fri Mar 3 11:42:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9602591 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 AD9A6600CB for ; Fri, 3 Mar 2017 11:42:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C33428112 for ; Fri, 3 Mar 2017 11:42:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 90317285EC; Fri, 3 Mar 2017 11:42:39 +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 20FDC28112 for ; Fri, 3 Mar 2017 11:42:38 +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=N2D L37C+rdEIG163hGURQVhvqLqpNUgqt3f6mCydOCjgq6Mp9uHx6ki+ka+B5uEJUp19F0xbrWd+xfD+ m59tfSqeofzsUpJ7K6RMqjAkobA0uzBbfP8esrUOcR7+FHWhh14r3TdtRNQJvUzK9naKN3TlGPCLE /8+ENd5gY+LV//E5OJ17iSVeBJnBl/hQDl5SBETtNGMerS66SXJ+r3Y1SOa01OT6fsvsVYTlCjvEk zwZVAYFDhDEVGroSb3EvAUE60XH9GzZg43WJaEBNMYnlq/KVGId+fWx/trsds+XBkkcsr5Gox7Gcv qNwepbApGOJBma6fWnpV68a4KLwAFaw==; 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 1cjlbY-00050B-58; Fri, 03 Mar 2017 11:42:36 +0000 Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjlbT-0004x2-WB for linux-arm-kernel@lists.infradead.org; Fri, 03 Mar 2017 11:42:34 +0000 Received: from ayla.of.borg ([84.193.137.253]) by xavier.telenet-ops.be with bizsmtp id rPi21u00Q5UCtCs01Pi2np; Fri, 03 Mar 2017 12:42:03 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1cjlb0-00076k-Fy; Fri, 03 Mar 2017 12:42:02 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1cjlb0-0004ZR-Cl; Fri, 03 Mar 2017 12:42:02 +0100 From: Geert Uytterhoeven To: Jonathan Corbet , Russell King Subject: [PATCH] Documentation: arm: Replace use of virt_to_phys with __pa_symbol Date: Fri, 3 Mar 2017 12:42:01 +0100 Message-Id: <1488541321-17225-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-20170303_034232_220472_1EAB95B3 X-CRM114-Status: UNSURE ( 7.02 ) 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 --- 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 */