On Fri, 20 Mar 2026 12:31:41 +0200
Andy Shevchenko [off-list ref] wrote:
On Fri, Mar 20, 2026 at 01:46:37PM +0800, Billy Tsai wrote:
quoted
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").
quoted
Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
I haven't suggested the idea, I only suggested to use fsleep() for the purpose.
Dropped the tag.