pmdomain: imx8m[p]-blk-ctrl: Suppress bind attrs
authorPeng Fan <peng.fan@nxp.com>
Fri, 6 Dec 2024 11:27:30 +0000 (19:27 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 10 Dec 2024 11:34:52 +0000 (12:34 +0100)
The blk ctrl drivers on imx8m series are registered as platform
devices and this opens the possibility of reloading the driver
at runtime.

But this doesn't actually work. There are some hardware sequence
dependecy between blk ctrl and gpc, also power domains are used
by other peripherals, so fix this by explicitly suppressing bind
attrs.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Message-ID: <20241206112731.98244-1-peng.fan@oss.nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/imx/imx8m-blk-ctrl.c
drivers/pmdomain/imx/imx8mp-blk-ctrl.c

index 23db85b7aa9e68a7f3b304fac9b12ad7d5545519..912802b5215bd2e14cf064f973fbeb99614f4082 100644 (file)
@@ -894,6 +894,7 @@ static struct platform_driver imx8m_blk_ctrl_driver = {
                .name = "imx8m-blk-ctrl",
                .pm = &imx8m_blk_ctrl_pm_ops,
                .of_match_table = imx8m_blk_ctrl_of_match,
+               .suppress_bind_attrs = true,
        },
 };
 module_platform_driver(imx8m_blk_ctrl_driver);
index e3a0f64c144ca9016dc9cc2e05fae1a5229fff0d..411dd548c67c6747e18877581b617a64d1802df9 100644 (file)
@@ -862,6 +862,7 @@ static struct platform_driver imx8mp_blk_ctrl_driver = {
                .name = "imx8mp-blk-ctrl",
                .pm = &imx8mp_blk_ctrl_pm_ops,
                .of_match_table = imx8mp_blk_ctrl_of_match,
+               .suppress_bind_attrs = true,
        },
 };
 module_platform_driver(imx8mp_blk_ctrl_driver);