]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: aspeed: Replace mdelay() with fsleep() for ADC stabilization delay
authorBilly Tsai <billy_tsai@aspeedtech.com>
Fri, 20 Mar 2026 05:46:37 +0000 (13:46 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 15:49:16 +0000 (15:49 +0000)
commit66ab53c286989634acaa2c4a5703c0f647cb9aa3
tree0536d905e720c42aeeeb9c246b4a72263d5cb449
parent9ee1c3be164de16bab382197202ddef8ae020433
iio: adc: aspeed: Replace mdelay() with fsleep() for ADC stabilization delay

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").

Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/aspeed_adc.c