Skip to contentSkip to conversation

hwmon: (corsair-cpro) Add firmware and bootloader information

PATCH Applied Marius Zachmann 2 participants 2 messages May 13, 2024 – May 14, 2024

Subsystems (3)
lore
Share & tools
lore

Marius Zachmann

author maintainer
#0 lore raw

PATCH v5 1/1 hwmon: (corsair-cpro) Add firmware and bootloader information

Add support for reporting firmware and bootloader version using debugfs. Update documentation accordingly.

---
Changes in v5:
- remove else in get_fw_version and get_bl_version in favor of returning directly

Changes in v4:
- split get_fw_version into get_fw_version and get_bl_version
- only create debugfs file, when the reading succeeded

Changes in v3:
- use different debugfs directory name for each device

Changes in v2:
- better patch description
- Documentation uses "Firmware version" and "Bootloader version"
- removed conditional CONFIG_DEBUG_FS
- get_fw_version gets called from ccp_debugfs_init
- get_fw_version does print a hid_notice when an error occurs instead of failing.

---
 Documentation/hwmon/corsair-cpro.rst |  8 +++
 drivers/hwmon/corsair-cpro.c         | 88 ++++++++++++++++++++++++++++
 2 files changed, 96 insertions(+)
Documentation/hwmon/corsair-cpro.rst +8 -0
index 751f95476b57..15077203a2f8 100644
@@ -39,3 +39,11 @@ fan[1-6]_target		Sets fan speed target rpm.
 pwm[1-6]		Sets the fan speed. Values from 0-255. Can only be read if pwm
 			was set directly.
 ======================= =====================================================================
+
+Debugfs entries
+---------------
+
+======================= ===================
+firmware_version	Firmware version
+bootloader_version	Bootloader version
+======================= ===================
drivers/hwmon/corsair-cpro.c +88 -0

135 lines not on this page · raw message

Signature · 1 line
2.45.0
maintainer Applied
#1 lore raw
Quoted 4 lines · Marius Zachmann

Add support for reporting firmware and bootloader version using debugfs. Update documentation accordingly.

Applied.

Note: This patch missed the commit window, so it will only show up in hwmon-next and in linux-next after the commit window closes.

Guenter