[PATCH 14/16] iio: frequency: ad9523: sync the dividers at the end of probe
From: Nuno Sá
Date: Mon Nov 30 2026 - 12:39:03 EST
The datasheet recommends initiating a distribution sync after the VCO
calibration, so that the outputs get the deterministic phase
relationship given by the programmed divider phases. The driver never
does this on its own, leaving it up to userspace through the
sync_dividers attribute.
Sync the dividers once everything is set up during probe.
Signed-off-by: Nuno Sá <nuno.sa@xxxxxxxxxx>
---
drivers/iio/frequency/ad9523.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/iio/frequency/ad9523.c b/drivers/iio/frequency/ad9523.c
index f0caaae4d39a..216b1a92ce1a 100644
--- a/drivers/iio/frequency/ad9523.c
+++ b/drivers/iio/frequency/ad9523.c
@@ -1409,6 +1409,10 @@ static int ad9523_probe(struct spi_device *spi)
if (ret < 0)
return ret;
+ ret = ad9523_sync(indio_dev);
+ if (ret < 0)
+ return ret;
+
return devm_iio_device_register(dev, indio_dev);
}
--
2.56.0