From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796061273; b=iMx5b0AP5DTssiTUrMYlCjUuxRBafPVdNVJgmDP0M/f4gpKAK4sPGgFGlpiO16/L68iH sZOzVTVVf3TzaKEvyDI5SuDlsN4WasMzNF1USfZtn5LC5CFj7tW23zzyBF/vlB4KH9aDt KpOv9vUVdYPnjKxWnVwDqXAq0K40d7Qz1VG/hNQ2OkP3tfThv4i2fhlwPx5Xdr1DiFeTw 62Wh1X3+XO0bmNVzQrLgWtGvkoBNQqAU8HJG8q69iVTrj1yV3ZJoGUoZuhYCW0xT5CEPT iSsr3NylKBtIHtCKDBqzrWq4+PxeQavVt2nb8jg1NLzRBFlxYduWAPaFHJO3RnF7/lw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796061273; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=luC1WDyVkIqmew008o9BIDaKP9K2gNEA4fZxji2AxfQ=; b=AurRj6qlfowABsceLk1ovsbaaL1wvVotd2ft1htxuA5CMajv5wEFJSOaWE3o3CDTvJ8L 1QhcwTxuMgD55nGcqoT32zBiQ0Eh75hgFLchdZwjGB30pe/xaTNqyeq3jH3NbR2AUnBto C1593Kwyh+7PMvvJKkmdqLHcBeqE0C6b1N3prYdtChR7TM7MOF7mKho5KhauNL0IOWZJl yFMP80pO+oKIE4xtMI8b3R7nsLn/CDm/hr7hRBUy2ucbuIvZIWiSNv4npfPA5sfq2Ay/v NufXabLnzi/5o1U3lTUsW9t6TlJEt+h3k1rC7jimJmZtgDBhJIfz98bnddCszjlPBEQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=beXcruQX; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 682C0606A31C for ; Mon, 30 Nov 2026 17:54:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=beXcruQX Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC6171F00896; Mon, 30 Nov 2026 17:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796061272; bh=luC1WDyVkIqmew008o9BIDaKP9K2gNEA4fZxji2AxfQ=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=beXcruQX1hAx02ZQOA3343yMUEvgvluF7tYlPf2lEw2s1m6vUsbXLQRZ8HHI1uXWy rJ37MVjTC8k8JN8QeSs5aYDLkvJ9d0BnYqxRM4vSJDIyg0AjVamH3ajzBUlZa+PsyE lHUXysvwRSyhjKq1SOgEYuYkBGjAOYuYXnFOWOKswQXDDRmAJrdOlkbJTzJrGKtOsp iX46wjfbtF3VAaL+yNiCwD6SDuzzEXnSpdA2pRmm3JIt23wL9hujZPMPPu3pGGF5dC tJeGi67rLzxighiyFxMEYFCWvHDjvR+YO7u1/Ew7BQLGqULycOV6BHx/7qxfHYNc42 2/FMrTNp6uoEg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 14/16] iio: frequency: ad9523: sync the dividers at the end of probe Reply-To: sashiko-reviews@lists.linux.dev To: =?utf-8?b?TnVubyBTw6E=?= , devicetree@vger.kernel.org Cc: robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261130-iio-ad9523-fw-v1-14-9aee15b7a7a2@analog.com> References: <20261130-iio-ad9523-fw-v1-0-9aee15b7a7a2@analog.com> <20261130-iio-ad9523-fw-v1-14-9aee15b7a7a2@analog.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Nov 2026 17:54:32 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] iio: frequency: ad9523: ad9523_sync() called before VCO calibration completes -- commit 7e67a340add8fb5732722b251d389371447f3b80 Author: Nuno S=C3=A1 iio: frequency: ad9523: sync the dividers at the end of probe This commit calls ad9523_sync() at the end of ad9523_probe() after ad9523_setup() completes. > diff --git a/drivers/iio/frequency/ad9523.c b/drivers/iio/frequency/ad952= 3.c > index f0caaae4d39a8..216b1a92ce1a7 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; > =20 > + ret =3D ad9523_sync(indio_dev); > + if (ret < 0) > + return ret; [Severity: Medium] Does ad9523_sync() run here while VCO calibration is still in progress? ad9523_setup() stages AD9523_PLL2_VCO_CALIBRATE in the buffered AD9523_PLL2_VCO_CTRL register, so calibration only starts when ad9523_io_update() is called at the very end of ad9523_setup(). Nothing polls AD9523_READBACK_1 for AD9523_READBACK_1_VCO_CALIB_IN_PROGRESS to clear before ad9523_sync() pulses the distribution sync. Also, ad9523_setup() initializes every channel powered down (AD9523_CLK_DIST_PWR_DOWN_EN) with hardcoded divider (32) and phase (1) values, so syncing during probe runs before the final divider and phase settings are programmed at runtime. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261130-iio-ad9523= -fw-v1-0-9aee15b7a7a2@analog.com?part=3D14