mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
iio: xilinx-ams: Fix AMS_ALARM_THR_DIRECT_MASK
AMS_ALARM_THR_DIRECT_MASK should be bit 0, not bit 1. This would cause
hysteresis to be enabled with a lower threshold of -28C. The temperature
alarm would never deassert even if the temperature dropped below the
upper threshold.
Fixes: d5c70627a7 ("iio: adc: Add Xilinx AMS driver")
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: O'Griofa, Conall <conall.ogriofa@amd.com>
Tested-by: Erim, Salih <Salih.Erim@amd.com>
Acked-by: Erim, Salih <Salih.Erim@amd.com>
Link: https://patch.msgid.link/20250715003058.2035656-1-sean.anderson@linux.dev
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
feb500c7ae
commit
1315cc2dbd
@@ -118,7 +118,7 @@
|
||||
#define AMS_ALARM_THRESHOLD_OFF_10 0x10
|
||||
#define AMS_ALARM_THRESHOLD_OFF_20 0x20
|
||||
|
||||
#define AMS_ALARM_THR_DIRECT_MASK BIT(1)
|
||||
#define AMS_ALARM_THR_DIRECT_MASK BIT(0)
|
||||
#define AMS_ALARM_THR_MIN 0x0000
|
||||
#define AMS_ALARM_THR_MAX (BIT(16) - 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user