]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: adi-axi-adc: make sure DRP is locked on enable
authorNuno Sa <nuno.sa@analog.com>
Fri, 31 May 2024 09:41:55 +0000 (11:41 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Jun 2024 18:53:07 +0000 (19:53 +0100)
commit70a0e10f8ab62ba82b080347ca0a119e14e964c9
tree095d582099cd9306f84355c2be3929e344fc20fb
parent202b89f4b778d86a940f693785600acaccca6a2b
iio: adc: adi-axi-adc: make sure DRP is locked on enable

When enabling the core, make sure DRP (Dynamic Reconfiguration Port)
is locked. Most of the designs don't really use it but we still get the
lock bit set. So let's do it all the time so the code is generic.

While at it reduce the timeout time to 1 microsecond as it seems to be
enough and goes in line with what we have on the similar DAC core
(adi-axi-dac).

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240531-dev-axi-adc-drp-v3-2-e3fa79447c67@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/adi-axi-adc.c