On Fri, May 22, 2020 at 07:02:33PM +0300, Andy Shevchenko wrote: > On Fri, May 22, 2020 at 04:50:05PM +0100, Mark Brown wrote: > > If the delay used is long enough the spi_delay_exec() will use a sleeping > > function to implement it. Add a might_sleep() here to help avoid callers > > using this from an atomic context and running into problems at runtime on > > other systems. > > Thanks! > Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> We may improve it later, though, to be smarter and spill a warning only when it uses non-atomic delays. For now this is good enough. -- With Best Regards, Andy Shevchenko