Thread (13 messages) 13 messages, 1 author, 24d ago
COLD24d

[PATCH RFC 11/12] rvtrace: encoder: Add probe success message

From: Eric Lin <hidden>
Date: 2026-06-30 09:47:40
Also in: linux-riscv, lkml
Subsystem: hardware tracing facilities, the rest · Maintainers: Alexander Shishkin, Linus Torvalds

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 <redacted>
Signed-off-by: Nick Hu <redacted>
Co-developed-by: Vincent Chen <redacted>
Signed-off-by: Vincent Chen <redacted>
Signed-off-by: Eric Lin <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help