Skip to content

Commit

Permalink
bus/fslmc: fix non-required bus scan return
Browse files Browse the repository at this point in the history
fslmc bus will not be available on non DPAA2 platform.
Do not return error on scan failure.

Fixes: 57cb02e ("bus/fslmc: enhance MC VFIO multi-process support")

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
  • Loading branch information
hemantagr authored and tmonjalo committed Nov 11, 2024
1 parent 4d23d39 commit b472c50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/bus/fslmc/fslmc_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,6 @@ rte_fslmc_parse(const char *name, void *addr)
uint8_t sep_exists = 0;
int ret = -1;

DPAA2_BUS_DEBUG("Parsing dev=(%s)", name);

/* There are multiple ways this can be called, with bus:dev, name=dev
* or just dev. In all cases, the 'addr' is actually a string.
*/
Expand Down Expand Up @@ -329,7 +327,8 @@ rte_fslmc_scan(void)
group_name = getenv("DPRC");
if (!group_name) {
DPAA2_BUS_DEBUG("DPAA2: DPRC not available");
return -EINVAL;
ret = -EINVAL;
goto scan_fail;
}

ret = fslmc_get_container_group(group_name, &groupid);
Expand Down

0 comments on commit b472c50

Please sign in to comment.