]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: dac: adi-axi-dac: fix bus read
authorAngelo Dureghello <adureghello@baylibre.com>
Wed, 9 Apr 2025 09:16:54 +0000 (11:16 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 7 May 2025 18:40:38 +0000 (19:40 +0100)
commit921fece3268c3bf2e8c20dd17ff9e5454fa16fda
treecb982229f6b2f385fbc7cb4ee0e4862b352da5d1
parent89944d88f8795c6c89b9514cb365998145511cd4
iio: dac: adi-axi-dac: fix bus read

Fix bus read function.

Testing the driver, on a random basis, wrong reads was detected, mainly
by a wrong DAC chip ID read at first boot.
Before reading the expected value from the AXI regmap, need always to
wait for busy flag to be cleared.

Fixes: e61d7178429a ("iio: dac: adi-axi-dac: extend features")
Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250409-ad3552r-fix-bus-read-v2-1-34d3b21e8ca0@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/adi-axi-dac.c