Re: [PATCH] iio: adc: ti-ads7950: Set `can_sleep` flag for GPIO chip

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On 3/12/23 4:09 PM, Lars-Peter Clausen wrote:
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

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

Fixes: c97dce792dc8 ("iio: adc: ti-ads7950: add GPIO support")
Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>

Acked-by: David Lechner <david@xxxxxxxxxxxxxx>

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     []

  Powered by Linux