* [PATCH] ARM: at91: Replace uses of virt_to_phys with __pa_symbol
@ 2017-08-24 11:44 Alexandre Belloni
2017-08-24 12:09 ` Nicolas Ferre
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Belloni @ 2017-08-24 11:44 UTC (permalink / raw)
To: Nicolas Ferre
Cc: Ludovic Desroches, Florian Fainelli, linux-arm-kernel,
linux-kernel, Alexandre Belloni
The PM code wrongly uses virt_to_phys() instead of __pa_symbol() and was
not updated by commit 64fc2a947a98 ("ARM: 8641/1: treewide: Replace uses of
virt_to_phys with __pa_symbol") because it was not yet in tree.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
arch/arm/mach-at91/pm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
index b1a59d638321..ccaaaa138d13 100644
--- a/arch/arm/mach-at91/pm.c
+++ b/arch/arm/mach-at91/pm.c
@@ -535,8 +535,8 @@ static void __init at91_pm_backup_init(void)
}
pm_bu->suspended = 0;
- pm_bu->canary = virt_to_phys(&canary);
- pm_bu->resume = virt_to_phys(cpu_resume);
+ pm_bu->canary = __pa_symbol(&canary);
+ pm_bu->resume = __pa_symbol(cpu_resume);
return;
--
2.14.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: at91: Replace uses of virt_to_phys with __pa_symbol
2017-08-24 11:44 [PATCH] ARM: at91: Replace uses of virt_to_phys with __pa_symbol Alexandre Belloni
@ 2017-08-24 12:09 ` Nicolas Ferre
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2017-08-24 12:09 UTC (permalink / raw)
To: Alexandre Belloni
Cc: Ludovic Desroches, Florian Fainelli, linux-arm-kernel, linux-kernel
On 24/08/2017 at 13:44, Alexandre Belloni wrote:
> The PM code wrongly uses virt_to_phys() instead of __pa_symbol() and was
> not updated by commit 64fc2a947a98 ("ARM: 8641/1: treewide: Replace uses of
> virt_to_phys with __pa_symbol") because it was not yet in tree.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
> ---
> arch/arm/mach-at91/pm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
> index b1a59d638321..ccaaaa138d13 100644
> --- a/arch/arm/mach-at91/pm.c
> +++ b/arch/arm/mach-at91/pm.c
> @@ -535,8 +535,8 @@ static void __init at91_pm_backup_init(void)
> }
>
> pm_bu->suspended = 0;
> - pm_bu->canary = virt_to_phys(&canary);
> - pm_bu->resume = virt_to_phys(cpu_resume);
> + pm_bu->canary = __pa_symbol(&canary);
> + pm_bu->resume = __pa_symbol(cpu_resume);
>
> return;
>
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-24 12:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24 11:44 [PATCH] ARM: at91: Replace uses of virt_to_phys with __pa_symbol Alexandre Belloni
2017-08-24 12:09 ` Nicolas Ferre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®