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

From: Eric Lin

Date: Tue Jun 30 2026 - 06:08:11 EST


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@xxxxxxxxxx>
Signed-off-by: Nick Hu <nick.hu@xxxxxxxxxx>
Co-developed-by: Vincent Chen <vincent.chen@xxxxxxxxxx>
Signed-off-by: Vincent Chen <vincent.chen@xxxxxxxxxx>
Signed-off-by: Eric Lin <eric.lin@xxxxxxxxxx>
---
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