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