[PATCH 01/14] mailbox/zynqmp, cpu/hotplug: Update name & callbacks to match their hotplug states

From: Srivatsa S. Bhat (Microsoft)

Date: Thu Dec 03 2026 - 14:17:52 EST


The SGI setup registers its CPU hotplug callbacks at
CPUHP_AP_ONLINE_DYN, but names the state "mailbox/sgi:starting".
This is misleading because the 'starting' suffix denotes the earlier,
interrupts-disabled STARTING section, and not the ONLINE section.

Rename it to "mailbox/sgi:online", following the naming convention
documented in Documentation/core-api/cpu_hotplug.rst.

Also, rename the registered CPU hotplug startup and teardown callbacks
to match the states that they are associated with.

No functional change intended, except for the update to the name string,
which gets reflected in sysfs output and instrumentation.

Fixes: 6ffb1635341b ("mailbox: zynqmp: handle SGI for shared IPI")
Signed-off-by: Srivatsa S. Bhat (Microsoft) <srivatsa@xxxxxxxxxxxxx>
---
drivers/mailbox/zynqmp-ipi-mailbox.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mailbox/zynqmp-ipi-mailbox.c b/drivers/mailbox/zynqmp-ipi-mailbox.c
index 2b81bedf0653..5492c2e49f6d 100644
--- a/drivers/mailbox/zynqmp-ipi-mailbox.c
+++ b/drivers/mailbox/zynqmp-ipi-mailbox.c
@@ -775,7 +775,7 @@ static int versal_ipi_setup(struct zynqmp_ipi_mbox *ipi_mbox,
return 0;
}

-static int xlnx_mbox_cpuhp_start(unsigned int cpu)
+static int xlnx_mbox_cpu_online(unsigned int cpu)
{
struct zynqmp_ipi_pdata *pdata;

@@ -786,7 +786,7 @@ static int xlnx_mbox_cpuhp_start(unsigned int cpu)
return 0;
}

-static int xlnx_mbox_cpuhp_down(unsigned int cpu)
+static int xlnx_mbox_cpu_offline(unsigned int cpu)
{
struct zynqmp_ipi_pdata *pdata;

@@ -863,8 +863,8 @@ static int xlnx_mbox_init_sgi(struct platform_device *pdev,
irq_set_status_flags(pdata->virq_sgi, IRQ_PER_CPU);

/* Setup function for the CPU hot-plug cases */
- cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "mailbox/sgi:starting",
- xlnx_mbox_cpuhp_start, xlnx_mbox_cpuhp_down);
+ cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "mailbox/sgi:online",
+ xlnx_mbox_cpu_online, xlnx_mbox_cpu_offline);

return ret;
}

--
2.43.0