Re: [PATCH 3/5] hwmon: scmi-hwmon: Log number of sensors
From: Guenter Roeck
Date: Wed May 13 2026 - 13:18:36 EST
On 5/13/26 09:44, Alex Tran wrote:
The SCMI hwmon driver does not currently report how many sensors were^^^^^^^^^^^^^^^^
discovered from firmware during probe. This makes it harder to confirm
the firmware exposed sensor resources during debugging.
Then please use dev_dbg().
Thanks,
Guenter
Log the sensor count after a successful probe, aligning the driver with
the existing SCMI client driver logging pattern.
Signed-off-by: Alex Tran <alex.tran@xxxxxxxxxxxxxxxx>
---
drivers/hwmon/scmi-hwmon.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/hwmon/scmi-hwmon.c b/drivers/hwmon/scmi-hwmon.c
index eec223d174c0..6f1b0559d5c2 100644
--- a/drivers/hwmon/scmi-hwmon.c
+++ b/drivers/hwmon/scmi-hwmon.c
@@ -362,6 +362,7 @@ static int scmi_hwmon_probe(struct scmi_device *sdev)
}
}
+ dev_info(dev, "Initialized %d sensors\n", nr_sensors);
return 0;
}