linux-yocto/drivers/iio
Kim Seer Paller 1131e70558 iio: dac: ad3530r: Fix incorrect masking for channels 4-7 in powerdown mode
In the current implementation of ad3530r_set_dac_powerdown() function,
the macro AD3530R_OP_MODE_CHAN_MSK(chan->channel) is used to generate
the bitmask for the operating mode of a specific channel. However, this
macro does not account for channels 4-7, which map to the second
register AD3530R_OUTPUT_OPERATING_MODE_1 for the 8 channeled device. As
a result, the bitmask is incorrectly calculated for these channels,
leading to improper configuration of the powerdown mode. Resolve this
issue by adjusting the channel index for channels 4-7 by subtracting 4
before applying the macro. This ensures that the correct bitmask is
generated for the second register.

Fixes: 93583174a3 ("iio: dac: ad3530r: Add driver for AD3530R and AD3531R")
Signed-off-by: Kim Seer Paller <kimseer.paller@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250626-bug_fix-v1-1-eb3c2b370f10@analog.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-06-29 17:15:40 +01:00
..
accel iio: accel: fxls8962af: Fix use after free in fxls8962af_fifo_flush 2025-06-29 17:15:39 +01:00
adc iio: adc: ad7380: fix adi,gain-milli property parsing 2025-06-29 17:15:40 +01:00
addac iio: addac: ad74413r: use aligned_s64 for timestamp 2025-05-21 14:20:27 +01:00
afe iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
amplifiers iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
buffer iio: buffer-dma: Fix docstrings 2025-03-04 14:49:31 +00:00
cdc iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
chemical IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
common iio: common: st_sensors: Fix use of uninitialize device structs 2025-06-29 17:15:39 +01:00
dac iio: dac: ad3530r: Fix incorrect masking for channels 4-7 in powerdown mode 2025-06-29 17:15:40 +01:00
dummy iio: dummy: Switch to iio_push_to_buffers_with_ts() and provide size of storage 2025-05-21 14:20:26 +01:00
filter iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
frequency iio: admv1013: replace redundant ternary operator with just len 2025-05-21 14:21:34 +01:00
gyro iio: gyro: adxrs450: remove bits_per_word = 8 2025-05-21 14:20:31 +01:00
health iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
humidity iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
imu IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
light IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
magnetometer IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
multiplexer iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
orientation iio: orientation: hid-sensor-rotation: remove unnecessary alignment 2025-05-21 14:20:28 +01:00
position iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
potentiometer iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
potentiostat iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
pressure IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
proximity iio: proximity: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
resolver iio: resolver: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
temperature IIO: New device support, features and cleanup for 6.16 - take 2 2025-05-22 15:54:52 +02:00
test iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
trigger iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
iio_core_trigger.h
iio_core.h
industrialio-acpi.c
industrialio-backend.c iio: backend: fix out-of-bound write 2025-06-09 07:45:18 +01:00
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c iio: fix potential out-of-bound write 2025-06-09 07:45:19 +01:00
industrialio-event.c iio: introduce the FAULT event type 2025-02-08 15:16:29 +00:00
industrialio-gts-helper.c iio: gts-helper: export iio_gts_get_total_gain() 2025-02-08 15:16:29 +00:00
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c Merge 6.13-rc4 into char-misc-next 2025-01-13 06:17:49 +01:00
Kconfig
Makefile
TODO