]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: aspeed: clear reference voltage bits before configuring vref
authorBilly Tsai <billy_tsai@aspeedtech.com>
Tue, 3 Mar 2026 02:38:26 +0000 (10:38 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Mar 2026 13:27:38 +0000 (13:27 +0000)
commit7cf2f6ed8e7a3bf481ef70b6b4a2edb8abfa5c57
tree2d2017a95cc16aa8fa764eb8b31618a861b05b18
parent2f168094177f8553a36046afce139001801ca917
iio: adc: aspeed: clear reference voltage bits before configuring vref

Ensures the reference voltage bits are cleared in the ADC engine
control register before configuring the voltage reference. This
avoids potential misconfigurations caused by residual bits.

Fixes: 1b5ceb55fec2 ("iio: adc: aspeed: Support ast2600 adc.")
Signed-off-by: Billy Tsai <billy_tsai@aspeedtech.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/aspeed_adc.c