clk: imx: imx8ulp: set suppress_bind_attrs to true
authorPeng Fan <peng.fan@nxp.com>
Fri, 22 Oct 2021 13:15:13 +0000 (21:15 +0800)
committerAbel Vesa <abel.vesa@nxp.com>
Mon, 22 Nov 2021 12:40:17 +0000 (14:40 +0200)
The clock driver is registered as platform devices and
it is possible to reloading the driver at runtime.

But actually the clocks should never be removed to make system work,
attempting to bind again would result in a crash, because almost all
devices depends on clock to function well.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20211022131513.17381-1-peng.fan@oss.nxp.com
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
drivers/clk/imx/clk-imx8ulp.c

index 6699437e17b85df7da75f2d1169e86672f0224dc..8eb1af2d642981702febc15d69176f427882e635 100644 (file)
@@ -559,6 +559,7 @@ static struct platform_driver imx8ulp_clk_driver = {
        .probe  = imx8ulp_clk_probe,
        .driver = {
                .name           = KBUILD_MODNAME,
+               .suppress_bind_attrs = true,
                .of_match_table = imx8ulp_clk_dt_ids,
        },
 };