]> www.infradead.org Git - users/willy/xarray.git/commit
mlxbf-bootctl: Support sysfs entries for RTC battery status
authorXiangrong Li <xiangrongl@nvidia.com>
Fri, 24 Jan 2025 14:46:55 +0000 (14:46 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 3 Feb 2025 12:57:27 +0000 (14:57 +0200)
commit5d40a8577559250029ff571de38ffcbc226a63d7
treede06bed94cfb0bbd57de046821a2673eaa260e0b
parent2014c95afecee3e76ca4a56956a936e23283f05b
mlxbf-bootctl: Support sysfs entries for RTC battery status

This patch extends the mlxbf-bootctl driver's sysfs entries
to support read access for the board's RTC battery status.
A successful read from this attribute returns the status of
the board's RTC battery. The RTC battery status register is
also cleared upon successful read operation.

Signed-off-by: Xiangrong Li <xiangrongl@nvidia.com>
Reviewed-by: David Thompson <davthompson@nvidia.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250124144655.48564-1-xiangrongl@nvidia.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Documentation/ABI/testing/sysfs-platform-mellanox-bootctl
drivers/platform/mellanox/mlxbf-bootctl.c
drivers/platform/mellanox/mlxbf-bootctl.h