From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: Nipun Gupta <nipun.gupta@amd.com>,
Nikhil Agarwal <nikhil.agarwal@amd.com>,
Ferruh Yigit <ferruh.yigit@amd.com>
Subject: [PATCH] bus/cdx: silence bus scan when CDX is unavailable
Date: Fri, 9 Jun 2023 13:11:09 +0200 [thread overview]
Message-ID: <20230609111109.2877000-1-david.marchand@redhat.com> (raw)
Absence of the CDX bus is not an error.
Bugzilla ID: 1246
Fixes: 45ef232af515 ("bus/cdx: introduce AMD CDX bus")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
drivers/bus/cdx/cdx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/bus/cdx/cdx.c b/drivers/bus/cdx/cdx.c
index 9607096d18..28bbf92ed5 100644
--- a/drivers/bus/cdx/cdx.c
+++ b/drivers/bus/cdx/cdx.c
@@ -268,9 +268,9 @@ cdx_scan(void)
dir = opendir(RTE_CDX_BUS_DEVICES_PATH);
if (dir == NULL) {
- CDX_BUS_ERR("%s(): opendir failed: %s", __func__,
+ CDX_BUS_INFO("%s(): opendir failed: %s", __func__,
strerror(errno));
- return -1;
+ return 0;
}
while ((e = readdir(dir)) != NULL) {
--
2.40.1
next reply other threads:[~2023-06-09 11:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-09 11:11 David Marchand [this message]
2023-06-09 11:14 ` Gupta, Nipun
2023-06-09 13:20 ` David Marchand
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=20230609111109.2877000-1-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=ferruh.yigit@amd.com \
--cc=nikhil.agarwal@amd.com \
--cc=nipun.gupta@amd.com \
/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).