Re: [PATCH] spmi: mtk-pmif: retain controllers for removal

From: Abel Vesa

Date: Wed Oct 28 2026 - 11:47:49 EST


On 26-10-28 11:48:48, Avi Weiss wrote:
> mtk_spmi_bus_probe() stores each controller in its private pmif_bus
> rather than the parent arb->bus[] entry passed by the caller.
> mtk_spmi_remove() checks the parent entries, so it skips registered
> controllers and their IRQ and clock cleanup.
>
> Record successfully initialized controllers in the parent array and
> recover their private bus data when removing them.
>
> Fixes: 078117963b2c ("spmi: mtk-pmif: Add multi-bus support for SPMI 2.0")
> Signed-off-by: Avi Weiss <thnkslprpt@xxxxxxxxx>

Reviewed-by: Abel Vesa <abel.vesa@xxxxxxxxxxxxxxxx>