linux-yocto/drivers/iio/adc
David Lechner 423fd248c7 iio: adc: ad_sigma_delta: change to buffer predisable
[ Upstream commit 66d4374d97 ]

Change the buffer disable callback from postdisable to predisable.
This balances the existing posteanble callback. Using postdisable
with posteanble can be problematic, for example, if update_scan_mode
fails, it would call postdisable without ever having called posteanble,
so the drivers using this would be in an unexpected state when
postdisable was called.

Fixes: af3008485e ("iio:adc: Add common code for ADI Sigma Delta devices")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250703-iio-adc-ad_sigma_delta-buffer-predisable-v1-1-f2ab85138f1f@baylibre.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:24:36 +02:00
..
ab8500-gpadc.c
ad_sigma_delta.c iio: adc: ad_sigma_delta: change to buffer predisable 2025-08-28 16:24:36 +02:00
ad799x.c
ad7091r-base.c iio:adc:ad7091r: Move exports into IIO_AD7091R namespace. 2024-02-23 08:54:22 +01:00
ad7091r-base.h iio: adc: ad7091r: Enable internal vref if external vref is not supplied 2024-02-23 08:54:20 +01:00
ad7091r5.c iio:adc:ad7091r: Move exports into IIO_AD7091R namespace. 2024-02-23 08:54:22 +01:00
ad7124.c iio: adc: ad7124: Fix 3dB filter frequency reading 2025-06-27 11:05:16 +01:00
ad7192.c iio: adc: ad7192: Correct reference voltage 2023-10-25 11:58:58 +02:00
ad7266.c iio: adc: ad7266: Fix variable checking bug 2024-07-05 09:14:46 +02:00
ad7291.c
ad7292.c
ad7298.c
ad7476.c
ad7606_par.c
ad7606_spi.c iio: adc: ad7606_spi: fix reg write value mask 2025-06-27 11:05:27 +01:00
ad7606.c iio: adc: ad7606: fix standby gpio state to match the documentation 2024-10-17 15:11:06 +02:00
ad7606.h
ad7766.c
ad7768-1.c iio: adc: ad7768-1: Ensure SYNC_IN pulse minimum timing requirement 2025-08-28 16:24:19 +02:00
ad7780.c ad7780: fix division by zero in ad7780_write_raw() 2024-12-14 19:51:23 +01:00
ad7791.c iio: adc: ad7791: fix IRQ flags 2023-04-13 16:48:23 +02:00
ad7793.c
ad7887.c
ad7923.c
ad7949.c
ad9467.c iio: adc: ad9467: fix scan type sign 2024-07-05 09:14:19 +02:00
adi-axi-adc.c iio: adc: ad9467: fix scale setting 2024-01-25 14:52:51 -08:00
aspeed_adc.c
at91_adc.c iio: adc: at91: call input_free_device() on allocated iio_dev 2025-01-23 17:15:55 +01:00
at91-sama5d2_adc.c iio: core: Hide read accesses to iio_dev->currentmode 2023-10-25 11:58:58 +02:00
axp20x_adc.c
axp288_adc.c
bcm_iproc_adc.c
berlin2-adc.c iio: adc: berlin2-adc: Add missing of_node_put() in error path 2023-02-09 11:26:42 +01:00
cc10001_adc.c
cpcap-adc.c
da9150-gpadc.c
dln2-adc.c iio: adc: dln2: Use aligned_s64 for timestamp 2025-05-18 08:20:38 +02:00
envelope-detector.c
ep93xx_adc.c
exynos_adc.c iio: exynos-adc: request second interupt only when touchscreen mode is used 2023-11-08 17:26:40 +01:00
fsl-imx25-gcq.c
hi8435.c
hx711.c
imx7d_adc.c
ina2xx-adc.c iio: adc: ina2xx: avoid NULL pointer dereference on OF device match 2023-08-16 18:21:59 +02:00
ingenic-adc.c
intel_mrfld_adc.c
Kconfig iio: adc: ti-ads124s08: add missing select IIO_(TRIGGERED_)BUFFER in Kconfig 2024-10-22 15:40:45 +02:00
lp8788_adc.c
lpc18xx_adc.c
lpc32xx_adc.c
ltc2471.c
ltc2485.c
ltc2496.c
ltc2497-core.c
ltc2497.c
ltc2497.h
Makefile iio: stx104: Move to addac subdirectory 2023-08-26 14:23:27 +02:00
max1027.c
max1118.c
max1241.c
max1363.c iio: adc: max1363: Reorder mode_list[] entries 2025-08-28 16:24:00 +02:00
max9611.c
max11100.c
mcp320x.c
mcp3422.c
mcp3911.c
men_z188_adc.c
meson_saradc.c meson saradc: fix clock divider mask length 2023-07-23 13:47:54 +02:00
mp2629_adc.c
mt6360-adc.c
mt6577_auxadc.c
mxs-lradc-adc.c iio: adc: mxs-lradc: fix the order of two cleanup operations 2023-06-09 10:32:27 +02:00
nau7802.c
npcm_adc.c
palmas_gpadc.c iio: adc: palmas_gpadc: fix NULL dereference on rmmod 2023-05-11 23:00:15 +09:00
qcom-pm8xxx-xoadc.c
qcom-spmi-adc5.c
qcom-spmi-iadc.c
qcom-spmi-vadc.c
qcom-vadc-common.c
rcar-gyroadc.c
rn5t618-adc.c
rockchip_saradc.c iio: adc: rockchip_saradc: fix information leak in triggered buffer 2025-01-23 17:16:03 +01:00
rzg2l_adc.c
sc27xx_adc.c
sd_adc_modulator.c
spear_adc.c
stm32-adc-core.c iio: adc: stm32-adc: Fix race in installing chained IRQ handler 2025-08-28 16:24:00 +02:00
stm32-adc-core.h
stm32-adc.c
stm32-dfsdm-adc.c iio: adc: stm32-dfsdm: fill module aliases 2023-02-09 11:26:40 +01:00
stm32-dfsdm-core.c
stm32-dfsdm.h
stmpe-adc.c
sun4i-gpadc-iio.c
ti_am335x_adc.c iio: adc: ti_am335x_adc: Fix return value check of tiadc_request_dma() 2024-01-05 15:13:32 +01:00
ti-adc081c.c
ti-adc084s021.c
ti-adc108s102.c
ti-adc128s052.c
ti-adc161s626.c
ti-adc0832.c
ti-adc12138.c
ti-ads124s08.c iio: adc: ti-ads124s08: Use gpiod_set_value_cansleep() 2025-01-23 17:15:55 +01:00
ti-ads131e08.c
ti-ads1015.c
ti-ads7950.c iio: adc: ti-ads7950: Set can_sleep flag for GPIO chip 2023-04-13 16:48:21 +02:00
ti-ads8344.c
ti-ads8688.c iio: adc: ti-ads8688: fix information leak in triggered buffer 2025-01-23 17:15:55 +01:00
ti-tlc4541.c
ti-tsc2046.c
twl4030-madc.c
twl6030-gpadc.c iio:adc:twl6030: Enable measurement of VAC 2023-02-09 11:26:47 +01:00
vf610_adc.c
viperboard_adc.c
xilinx-xadc-core.c iio: adc: xilinx-xadc: Correct temperature offset/scale for UltraScale 2023-11-08 17:26:40 +01:00
xilinx-xadc-events.c
xilinx-xadc.h iio: adc: xilinx-xadc: Correct temperature offset/scale for UltraScale 2023-11-08 17:26:40 +01:00