From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18C0640242B for ; Thu, 30 Apr 2026 17:36:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777570592; cv=none; b=lH/EM6IUk8W53G5m/hG1OYVLs76xVP8bLJENv67FxmzD87cWtkcV70ttI9SrFsazli8FcvAMcJ3CCp3KcToKGDtMsQSgGrBxpWIArrG5mlATlxveLL9+BZ7LBwjpxTMJarJxDpTnpWEr3XXCmu13WOYK1N1+KlqWqEHnBvfzjBQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777570592; c=relaxed/simple; bh=DKpm77o7C+wmP2zqZP5HxdRKhRGoLrYB4dvKBgkzBM8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N30PZCsxh5InFYpTpdg25jpGZgv8nLN6kjE+nYl0qTEs31Sd4e1g2IykOUi24TnYfmII44XKIZ33Aqatx6ycjtfMAqRl7GZDh2xfTc8Yu8paUX3cvjaAS1sXWBrwg50e33oARde5eL/dMMnEyUeAB4gg/LbPlMPnEl/gCVMoEic= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=cpW+My/7; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="cpW+My/7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777570586; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=9TxaOgZk77bW6UP/5RC087WlAvfwLVRhA/dLxiGUyNA=; b=cpW+My/7tnCQMho3+V7InPf0chpGNwF2v9Oc3uHFFFi9NrfVcmKMe35qmF2o3KCJmeLNON eftmxps9S9/+xNHawMlB7hHQDjXXBGN6atkeVZpSiUvMiJeWXIu2ffN4Fb2bf2IAsqfdWF l2wA2DDi7mxWZqJKbOPUkMxjbNVZt30= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-380-ZfV2gvCTObWTNv2BXneHqw-1; Thu, 30 Apr 2026 13:36:22 -0400 X-MC-Unique: ZfV2gvCTObWTNv2BXneHqw-1 X-Mimecast-MFC-AGG-ID: ZfV2gvCTObWTNv2BXneHqw_1777570580 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8B81618005A9; Thu, 30 Apr 2026 17:36:19 +0000 (UTC) Received: from p16v.redhat.com (unknown [10.44.49.13]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E7D02180045E; Thu, 30 Apr 2026 17:36:12 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Andrew Lunn , Arkadiusz Kubalewski , "David S. Miller" , Donald Hunter , Eric Dumazet , Jakub Kicinski , Jiri Pirko , Jonathan Corbet , Leon Romanovsky , Mark Bloch , Michal Schmidt , Paolo Abeni , Pasi Vaananen , Petr Oros , Prathosh Satish , Saeed Mahameed , Shuah Khan , Simon Horman , Tariq Toukan , Vadim Fedorenko , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org Subject: [PATCH net-next v2 0/2] dpll: rework fractional frequency offset reporting Date: Thu, 30 Apr 2026 19:36:09 +0200 Message-ID: <20260430173611.3312596-1-ivecera@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 Rework how the fractional frequency offset (FFO) is reported in the DPLL subsystem. The fractional-frequency-offset-ppt attribute is moved from the top-level pin attributes into the pin-parent-device nested attribute set. This makes it consistent with phase-offset (which is already per-parent) and clarifies that FFO PPT represents the frequency difference between a pin and its parent DPLL device. The two FFO contexts are distinguished in the ffo_get callback: dpll=NULL for the top-level RX vs TX symbol rate offset and a valid dpll pointer for the nested pin vs DPLL offset. Patch 1 restructures the DPLL subsystem netlink handling, updates the YAML spec and driver-api documentation, and adds NULL guards to mlx5 and zl3073x drivers. Patch 2 implements the nested FFO for zl3073x using the dpll_df_offset_x register with ref_ofst=1, providing 2^-48 resolution. The old per-reference frequency measurement is removed as it was redundant with measured-frequency. Ivan Vecera (2): dpll: move fractional-frequency-offset-ppt under pin-parent-device dpll: zl3073x: report FFO as DPLL vs input reference offset Documentation/driver-api/dpll.rst | 16 +++++++ Documentation/netlink/specs/dpll.yaml | 11 +++-- drivers/dpll/dpll_netlink.c | 34 ++++++++++---- drivers/dpll/dpll_nl.c | 1 + drivers/dpll/zl3073x/chan.c | 31 ++++++++++++- drivers/dpll/zl3073x/chan.h | 14 ++++++ drivers/dpll/zl3073x/core.c | 45 ------------------- drivers/dpll/zl3073x/dpll.c | 34 +++++++------- drivers/dpll/zl3073x/ref.h | 14 ------ drivers/dpll/zl3073x/regs.h | 15 +++++++ .../net/ethernet/mellanox/mlx5/core/dpll.c | 4 ++ 11 files changed, 126 insertions(+), 93 deletions(-) -- 2.53.0