[PATCH RFC 11/12] rvtrace: encoder: Add probe success message
Eric Lin
eric.lin at sifive.com
Tue Jun 30 02:46:34 PDT 2026
Add an info message upon successful probing of the encoder driver.
This allows users to easily determine how many trace encoders are
available and successfully initialized on the platform.
Co-developed-by: Nick Hu <nick.hu at sifive.com>
Signed-off-by: Nick Hu <nick.hu at sifive.com>
Co-developed-by: Vincent Chen <vincent.chen at sifive.com>
Signed-off-by: Vincent Chen <vincent.chen at sifive.com>
Signed-off-by: Eric Lin <eric.lin at sifive.com>
---
drivers/hwtracing/rvtrace/rvtrace-encoder.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/hwtracing/rvtrace/rvtrace-encoder.c b/drivers/hwtracing/rvtrace/rvtrace-encoder.c
index 41e74cac0c25..e95a55808f4e 100644
--- a/drivers/hwtracing/rvtrace/rvtrace-encoder.c
+++ b/drivers/hwtracing/rvtrace/rvtrace-encoder.c
@@ -79,6 +79,7 @@ static int rvtrace_encoder_stop(struct rvtrace_component *comp)
static int rvtrace_encoder_probe(struct rvtrace_component *comp)
{
+ struct fwnode_handle *fwnode = dev_fwnode(comp->pdata->dev);
struct rvtrace_v0_comp_features *data;
struct rvtrace_driver *rtdrv;
int ret;
@@ -103,6 +104,8 @@ static int rvtrace_encoder_probe(struct rvtrace_component *comp)
if (ret)
return dev_err_probe(&comp->dev, ret, "failed to enable encoder.\n");
+ dev_info(&comp->dev, "%s is available\n", fwnode_get_name(fwnode));
+
return 0;
}
--
2.34.1
More information about the linux-riscv
mailing list