android_kernel_xiaomi_sm8350/drivers/iio/adc
Lars-Peter Clausen e469ebb28d iio: adc: ti-ads7950: Set can_sleep flag for GPIO chip
commit 363c7dc72f79edd55bf1c4380e0fbf7f1bbc2c86 upstream.

The ads7950 uses a mutex as well as SPI transfers in its GPIO callbacks.
This means these callbacks can sleep and the `can_sleep` flag should be
set.

Having the flag set will make sure that warnings are generated when calling
any of the callbacks from a potentially non-sleeping context.

Fixes: c97dce792d ("iio: adc: ti-ads7950: add GPIO support")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: David Lechner <david@lechnology.com>
Link: https://lore.kernel.org/r/20230312210933.2275376-1-lars@metafoo.de
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-20 12:07:34 +02:00
..
ad799x.c
ad7124.c iio: adc: ad7124: Remove shift from scan_type 2022-06-14 18:11:51 +02:00
ad7266.c
ad7291.c
ad7298.c
ad7476.c
ad7606_par.c
ad7606_spi.c
ad7606.c
ad7606.h
ad7766.c
ad7768-1.c iio: ad7768-1: Call iio_trigger_notify_done() on error 2021-12-14 14:49:06 +01:00
ad7780.c
ad7791.c
ad7793.c
ad7887.c
ad7923.c
ad7949.c
ad_sigma_delta.c iio: adc: ad_sigma_delta: do not use internal iio_dev lock 2023-01-18 11:41:41 +01:00
aspeed_adc.c
at91_adc.c iio: adc: at91_adc: fix possible memory leak in at91_adc_allocate_trigger() 2022-11-25 17:42:19 +01:00
at91-sama5d2_adc.c iio: adc: at91-sama5d2_adc: lock around oversampling and sample freq 2022-10-26 13:22:34 +02:00
axp20x_adc.c iio: adc: axp20x_adc: fix charging current reporting on AXP22x 2021-12-14 14:49:05 +01:00
axp288_adc.c iio: adc: axp288: Override TS pin bias current for some models 2022-06-29 08:58:48 +02:00
bcm_iproc_adc.c
berlin2-adc.c iio: adc: berlin2-adc: Add missing of_node_put() in error path 2023-02-22 12:50:27 +01:00
cc10001_adc.c
cpcap-adc.c
da9150-gpadc.c
dln2-adc.c
envelope-detector.c
ep93xx_adc.c
exynos_adc.c
fsl-imx25-gcq.c
hi8435.c
hx711.c
imx7d_adc.c
ina2xx-adc.c
ingenic-adc.c
Kconfig
lp8788_adc.c
lpc18xx_adc.c
lpc32xx_adc.c
ltc2471.c
ltc2485.c
ltc2497.c
Makefile
max1027.c
max1118.c
max1363.c
max9611.c
max11100.c
mcp320x.c
mcp3422.c
mcp3911.c iio: adc: mcp3911: use correct formula for AD conversion 2022-09-15 12:04:51 +02:00
men_z188_adc.c iio: adc: men_z188_adc: Fix a resource leak in an error handling path 2022-03-02 11:41:11 +01:00
meson_saradc.c
mt6577_auxadc.c
mxs-lradc-adc.c
nau7802.c
npcm_adc.c
palmas_gpadc.c
qcom-pm8xxx-xoadc.c
qcom-spmi-adc5.c
qcom-spmi-iadc.c
qcom-spmi-vadc.c
qcom-vadc-common.c
qcom-vadc-common.h
rcar-gyroadc.c
rockchip_saradc.c
sc27xx_adc.c iio: adc: sc27xx: Fine tune the scale calibration values 2022-06-14 18:11:52 +02:00
sd_adc_modulator.c
spear_adc.c
stm32-adc-core.c iio: adc: stm32: fix maximum clock rate for stm32mp15x 2022-06-29 08:58:48 +02:00
stm32-adc-core.h
stm32-adc.c iio: adc: stm32: fix a current leak by resetting pcsel before disabling vdda 2021-12-22 09:29:35 +01:00
stm32-dfsdm-adc.c iio: adc: stm32-dfsdm: fill module aliases 2023-02-22 12:50:26 +01:00
stm32-dfsdm-core.c
stm32-dfsdm.h
stmpe-adc.c iio: adc: stmpe-adc: Fix wait_for_completion_timeout return value check 2022-06-14 18:11:52 +02:00
stx104.c
sun4i-gpadc-iio.c
ti_am335x_adc.c
ti-adc081c.c
ti-adc084s021.c
ti-adc108s102.c
ti-adc128s052.c iio: adc128s052: add proper .data members in adc128_of_match table 2023-01-18 11:41:41 +01:00
ti-adc161s626.c
ti-adc0832.c
ti-adc12138.c
ti-ads124s08.c
ti-ads1015.c
ti-ads7950.c iio: adc: ti-ads7950: Set can_sleep flag for GPIO chip 2023-04-20 12:07:34 +02:00
ti-ads8344.c
ti-ads8688.c
ti-tlc4541.c
twl4030-madc.c
twl6030-gpadc.c iio:adc:twl6030: Enable measurement of VAC 2023-02-22 12:50:30 +01:00
vf610_adc.c
viperboard_adc.c
xilinx-xadc-core.c
xilinx-xadc-events.c
xilinx-xadc.h