Re: [PATCH 2/2] soc: xilinx: Fix event manager CPU hotplug state cleanup

From: Srivatsa S. Bhat

Date: Sat Nov 28 2026 - 12:50:53 EST


Hi Prasanna,

On Sat, Nov 28, 2026 at 10:35:34PM +0530, Prasanna Kumar T S M wrote:
> Hi Srivatsa,
>
> On 18-11-2026 12:03, Srivatsa S. Bhat wrote:
> > On Mon, Nov 02, 2026 at 10:35:15PM -0800, Prasanna Kumar T S M wrote:
> > > On driver removal, the event manager removes the CPUHP_AP_ONLINE_DYN
> > > CPU hotplug state instead of the its actual state. This can leave the
> > > event manager callbacks dangling. Use the actual CPU hotplug state
> > > during driver removal.
> > >

[...]

> > > on_each_cpu(xlnx_disable_percpu_irq, NULL, 1);
> > > irq_clear_status_flags(virq_sgi, IRQ_PER_CPU);
> > > @@ -660,8 +659,13 @@ static int xlnx_event_manager_probe(struct platform_device *pdev)
> > > }
> > > /* Setup function for the CPU hot-plug cases */
> > > - cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "soc/event:starting",
> > > - xlnx_event_cpuhp_start, xlnx_event_cpuhp_down);
> > > + hp_state = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
> > > + "soc/event:starting", xlnx_event_cpuhp_start,
> >
> > Let's change :starting to :online as per convention, as this is
> > associated with the ONLINE_DYN state.
> >
> > Can we also edit the callback names for symmetry similar to the
> > suggestion for patch 1/2?
>
> I will incorporate these in v2.
>

Actually, I found several instances of such mismatch throughout the tree, so I
have prepared a patch series to address that tree-wide. I'm planning to send it
out shortly. So, your v2 can continue to retain the original scope of the fixes.

Thank you!

Regards,
Srivatsa