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

Abel Vesa abel.vesa at oss.qualcomm.com
Wed Oct 28 08:41:35 PDT 2026


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 at gmail.com>

Reviewed-by: Abel Vesa <abel.vesa at oss.qualcomm.com>



More information about the Linux-mediatek mailing list