[PATCH 11/11] bus/fslmc: remove dead blocklist check in plug path

Maxime Leroy
2026-02-18T16:06:15Z

The plug callback is only reached via rte_dev_probe() which adds the
device to the EAL devargs list with RTE_DEV_ALLOWED policy. There is
no way to reach fslmc_bus_plug() with a blocked device, making the
blocklist check dead code.

Remove it.

Fixes: b5721f271cbf ("bus/fslmc: support DPNI hotplug")
Signed-off-by: Maxime Leroy <maxime@leroys.fr>
---
drivers/bus/fslmc/fslmc_bus.c | 7 -------
1 file changed, 7 deletions(-)

diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index a539753649..6be48754e3 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -612,13 +612,6 @@ fslmc_bus_plug(struct rte_device *rte_dev)
if (rte_dev_is_probed(&dev->device))
continue;

- if (dev->device.devargs &&
- dev->device.devargs->policy == RTE_DEV_BLOCKED) {
- DPAA2_BUS_DEBUG("%s Blocked, skipping",
- dev->device.name);
- continue;
- }
-
ret = drv->probe(drv, dev);
if (ret) {
DPAA2_BUS_ERR("Unable to probe");
--
2.43.0