[PATCH] powerpc/ipic: Stop printing address of registers

Christophe Leroy posted 1 patch 11 months, 2 weeks ago
arch/powerpc/sysdev/ipic.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] powerpc/ipic: Stop printing address of registers
Posted by Christophe Leroy 11 months, 2 weeks ago
The following line appears at boot:

	IPIC (128 IRQ sources) at (ptrval)

This is pointless so remove the printing of the virtual address and
replace it by matching physical address.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
---
 arch/powerpc/sysdev/ipic.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/powerpc/sysdev/ipic.c b/arch/powerpc/sysdev/ipic.c
index 5f69e2d50f26..037b04bf9a9f 100644
--- a/arch/powerpc/sysdev/ipic.c
+++ b/arch/powerpc/sysdev/ipic.c
@@ -762,8 +762,7 @@ struct ipic * __init ipic_init(struct device_node *node, unsigned int flags)
 	ipic_write(ipic->regs, IPIC_SIMSR_H, 0);
 	ipic_write(ipic->regs, IPIC_SIMSR_L, 0);
 
-	printk ("IPIC (%d IRQ sources) at %p\n", NR_IPIC_INTS,
-			primary_ipic->regs);
+	pr_info("IPIC (%d IRQ sources) at MMIO %pa\n", NR_IPIC_INTS, &res.start);
 
 	return ipic;
 }
-- 
2.47.0
Re: [PATCH] powerpc/ipic: Stop printing address of registers
Posted by Madhavan Srinivasan 9 months, 3 weeks ago
On Thu, 09 Jan 2025 07:48:36 +0100, Christophe Leroy wrote:
> The following line appears at boot:
> 
> 	IPIC (128 IRQ sources) at (ptrval)
> 
> This is pointless so remove the printing of the virtual address and
> replace it by matching physical address.
> 
> [...]

Applied to powerpc/next.

[1/1] powerpc/ipic: Stop printing address of registers
      https://git.kernel.org/powerpc/c/67d939159764d0c826971f9a83b4df687df5cbf4

Thanks