The CPU hotplug callbacks continue to use the per-CPU QMan portal
configuration after a manual unbind. Keep the built-in portal bound
while it participates in frame queue management and CPU migration.
This issue was found by our static analysis tool under development.
Fixes: 1f759d328f6d ("soc/fsl/qbman: Convert to hotplug state machine")
Signed-off-by: Guangshuo Li <[email protected]>
---
drivers/soc/fsl/qbman/qman_portal.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/fsl/qbman/qman_portal.c
b/drivers/soc/fsl/qbman/qman_portal.c
index d2063a86866a..a93e4fcbb63f 100644
--- a/drivers/soc/fsl/qbman/qman_portal.c
+++ b/drivers/soc/fsl/qbman/qman_portal.c
@@ -315,6 +315,7 @@ MODULE_DEVICE_TABLE(of, qman_portal_ids);
static struct platform_driver qman_portal_driver = {
.driver = {
.name = KBUILD_MODNAME,
+ .suppress_bind_attrs = true,
.of_match_table = qman_portal_ids,
},
.probe = qman_portal_probe,
--
2.43.0