mips: cm: Convert __mips_cm_phys_base() to weak function
authorSerge Semin <fancer.lancer@gmail.com>
Mon, 26 Feb 2024 10:54:22 +0000 (13:54 +0300)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 11 Mar 2024 13:02:15 +0000 (14:02 +0100)
commit732932220078f6312f3ef57c17523d3d7f995655
treee5b90dd7cf5ae793ffec485441345d5482087db1
parent8bc8db2ab2832daabdd06feeabdd511dc9575bb6
mips: cm: Convert __mips_cm_phys_base() to weak function

Based on the design pattern utilized in the CM GCR base address getter
implementation, the platform-specific code is capable to re-define the
getter and re-use the weakly defined initial version. But since the
pattern hasn't been used for over 10 years and another similar case (CM
L2-sync only base address getter) has just been fixed, let's unify the
interface and convert it to a more traditional single weakly defined
method: mips_cm_phys_base() (see the link below for the discussion around
this).

Link: https://lore.kernel.org/linux-mips/20240215171740.14550-3-fancer.lancer@gmail.com
Signed-off-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mips-cm.h
arch/mips/kernel/mips-cm.c