[PATCH v3 3/4] iio: adc: aspeed: Replace mdelay() with fsleep() for ADC stabilization delay
Andy Shevchenko
andriy.shevchenko at linux.intel.com
Fri Mar 20 21:31:41 AEDT 2026
On Fri, Mar 20, 2026 at 01:46:37PM +0800, Billy Tsai wrote:
> The ADC stabilization delays in compensation mode and battery sensing
> mode do not require atomic context. Using mdelay() here results in
> unnecessary busy waiting.
>
> Replace mdelay(1) with fsleep(1000) to allow the scheduler to run other
> tasks while waiting for the ADC to stabilize.
>
> Also fix a minor typo in the comment ("adc" -> "ADC").
> Suggested-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
I haven't suggested the idea, I only suggested to use fsleep() for the purpose.
--
With Best Regards,
Andy Shevchenko
More information about the Linux-aspeed
mailing list