Re: [PATCH net-next v15 01/13] dpll: omit pin phase attributes the driver has no value for

From: Ivan Vecera

Date: Wed Nov 11 2026 - 10:38:15 EST


On 11/10/26 21:26, Ali Rouhi wrote:
From: Oleg Zadorozhnyi<Oleg.Zadorozhnyi@xxxxxxxxxxxxxxxxx>

Let phase_offset_get and phase_adjust_get return -ENODATA for a pin the
driver has no value for, and leave DPLL_A_PIN_PHASE_OFFSET and
DPLL_A_PIN_PHASE_ADJUST out of the message in that case, as
dpll_msg_add_ffo() already does for the fractional frequency offset.
Today any error from either callback fails the whole pin dump.

A driver that measures the phase offset only on the input its PLL
tracks, or whose part holds a delay larger than the s32 the adjust
attribute carries, has no value to report for the pin, and a zero
cannot be told from a measurement. A phase adjust request on such a
pin is passed to the driver without the comparison against the old
value, so the delay can still be set or cleared.

Signed-off-by: Oleg Zadorozhnyi<Oleg.Zadorozhnyi@xxxxxxxxxxxxxxxxx>
Signed-off-by: Ali Rouhi<arouhi@xxxxxxxxxx>
---
drivers/dpll/dpll_netlink.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

Reviewed-by: Ivan Vecera <ivecera@xxxxxxxxxx>