]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: dac: ad7293: enable power before reset
authorDavid Lechner <dlechner@baylibre.com>
Mon, 16 Dec 2024 21:44:03 +0000 (15:44 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:13 +0000 (14:28 +0000)
commit84b6b55584d2fe6f4e85bcde2967bdde37577e50
tree7cb931c9224bcf56ba7178b09a8daab2137d3d88
parent6ade82946f4c0925600124ee0a999fb6cdaa58bd
iio: dac: ad7293: enable power before reset

Change the order of regulator enable and reset so that power supplies
are turned on before touching the reset line. Generally, chips should
have the VDRIVE supply enabled before applying voltage on any pins.

While we are at it, remove the voltage level checks. If the power
supplies are not supplying the correct voltage, this is a hardware
design problem, not a software problem.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20241216-iio-regulator-cleanup-round-6-v2-1-9482164b68cb@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad7293.c