[PATCH] clk: milbeaut: Register M10V clocks on the early controller mapping

Brian Masney masneyb at kernel.org
Mon Nov 30 09:33:36 PST 2026


> The M10V muxes and dividers use a platform-managed mapping, but are
> published on the permanent timer clock provider. Unbinding the platform
> driver unmaps registers that the clock operations still access.
> 
> Register all clocks from the existing early controller initializer. They
> use the same register block and only require the parent clock name. The
> provider and the mapping then share the lifetime of the timer clock.
> 
> This issue was found by our static analysis tool under development.
> 
> Fixes: 6a6ba5b55a72 ("clock: milbeaut: Add Milbeaut M10V clock controller")
> Signed-off-by: Guangshuo Li <liguangshuo at mail.sdu.edu.cn>

I think this is another case where "suppress_bind_attrs = true" can be
used since this is a builtin_platform_driver. We are trying to keep most
clock drivers as platform drivers, with the exception of the few clocks
that are needed for the system timer.

Brian

-- 
Brian Masney <masneyb at kernel.org>



More information about the linux-arm-kernel mailing list