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 Mon, 13 Mar 2023 13:44:33 -0500
David Lechner <david@xxxxxxxxxxxxxx> wrote:

> 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
> > 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: c97dce792dc8 ("iio: adc: ti-ads7950: add GPIO support")
> > Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
> > ---  
> 
> Acked-by: David Lechner <david@xxxxxxxxxxxxxx>
> 
> 

Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,
Jonathan



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

  Powered by Linux