From: Hemant Agrawal <hemant.agrawal@nxp.com>
To: dev@dpdk.org, thomas@monjalon.net, stephen@networkplumber.org
Cc: Hemant Agrawal <hemant.agrawal@nxp.com>
Subject: [PATCH] bus/fslmc: fix bus scan return failure value
Date: Mon, 11 Nov 2024 15:56:07 +0530 [thread overview]
Message-ID: <20241111102607.1571897-1-hemant.agrawal@nxp.com> (raw)
fslmc bus will not be available on non DPAA2 platform.
Do not return error on scan failure.
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
drivers/bus/fslmc/fslmc_bus.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index 17b3b6156c..68ad2b801e 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -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.
*/
@@ -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);
--
2.25.1
next reply other threads:[~2024-11-11 10:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 10:26 Hemant Agrawal [this message]
2024-11-11 11:00 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241111102607.1571897-1-hemant.agrawal@nxp.com \
--to=hemant.agrawal@nxp.com \
--cc=dev@dpdk.org \
--cc=stephen@networkplumber.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).