mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] hwmon: (max31760) Fix local limits, standby and the initial fan speed
@ 2026-11-08  3:59 Stanislav Aleksandrov
  2026-11-08  3:59 ` [PATCH 1/3] hwmon: (max31760) Fix the local temperature limit registers Stanislav Aleksandrov
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stanislav Aleksandrov @ 2026-11-08  3:59 UTC (permalink / raw)
  To: Guenter Roeck
  Cc: Nurettin Bolucu, linux-hwmon, linux-kernel, Stanislav Aleksandrov

Three fixes for the MAX31760 driver, found while bringing up the Samsung
Galaxy XR on mainline. The headset uses the chip for its two cooling
fans.

1. The local temperature max and crit limits are swapped.
2. Probe never clears the standby bit. The Galaxy XR bootloader leaves
   the chip in standby, so the driver gets no temperature or fan speed
   readings and can't control the fans.
3. The fan speed reads 3000000 RPM before the first measurement.

The patches were written with the help of an AI coding assistant
(Claude Code), based on the datasheet and tests on the device. I
reviewed them and tested them on the Galaxy XR.

---
Stanislav Aleksandrov (3):
      hwmon: (max31760) Fix the local temperature limit registers
      hwmon: (max31760) Leave standby mode at probe
      hwmon: (max31760) Report 0 RPM before the first fan speed measurement

 drivers/hwmon/max31760.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
---
base-commit: f4e680ffc2e50867c5b590e26a37f8801a31e486
change-id: 20261108-max31760-fixes-0af187603717

Best regards,
--  
Stanislav Aleksandrov <lightofmysoul@gmail.com>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-08 15:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08  3:59 [PATCH 0/3] hwmon: (max31760) Fix local limits, standby and the initial fan speed Stanislav Aleksandrov
2026-11-08  3:59 ` [PATCH 1/3] hwmon: (max31760) Fix the local temperature limit registers Stanislav Aleksandrov
2026-11-08 15:53   ` Guenter Roeck
2026-11-08  3:59 ` [PATCH 2/3] hwmon: (max31760) Leave standby mode at probe Stanislav Aleksandrov
2026-11-08 15:54   ` Guenter Roeck
2026-11-08  3:59 ` [PATCH 3/3] hwmon: (max31760) Report 0 RPM before the first fan speed measurement Stanislav Aleksandrov
2026-11-08 15:55   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®