Skip to content

hwmon: bt1-pvt: Fix PVT sensor being unpowered

Serge Semin linux-hwmon linux-mips lkml 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3hwmon: bt1-pvt: Test sensor power supply on probedrivers/hwmon/bt1-pvt.c+40 -01 reply
2/3hwmon: bt1-pvt: Cache current update timeoutdrivers/hwmon/bt1-pvt.c drivers/hwmon/bt1-pvt.h+49 -391 reply
3/3hwmon: bt1-pvt: Wait for the completion with timeoutdrivers/hwmon/bt1-pvt.c+12 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] hwmon: bt1-pvt: Fix PVT sensor being unpowered

Baikal-T1 PVT sensor has got a dedicated power domain with 1.8V intended to be supplied via the external GPVT and VPVT_18 pins. In case if the power isn't supplied, the sensor IO registers will be accessible, but the data conversion just won't happen. The situation of the power loss currently will cause the temperature and voltage read procedures to hang up. The problem is fixed in the framework of this patchset firstly by checking whether the conversion works at the sensor probe procedure, and secondly by keeping the current conversion update timeout in the private driver data cache and using it to set the wait-completion timeout.

Fixes 87976ce2825d ("hwmon: Add Baikal-T1 PVT sensor driver")
Cc Maxim Kaurkin <[email protected]>
Cc Alexey Malahov <[email protected]>
Cc Pavel Parkhomenko <[email protected]>

Serge Semin (3):
hwmon: bt1-pvt: Test sensor power supply on probe
hwmon: bt1-pvt: Cache current update timeout
hwmon: bt1-pvt: Wait for the completion with timeout

 drivers/hwmon/bt1-pvt.c | 138 ++++++++++++++++++++++++++++------------
 drivers/hwmon/bt1-pvt.h |   3 +
 2 files changed, 101 insertions(+), 40 deletions(-)
Signature · 1 line
2.27.0