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 C40C646AEF1 for ; Thu, 30 Apr 2026 17:36:30 +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=1777570597; cv=none; b=DjCBDeEHTdz0tXYFsMJccZJHXrQt0KbBmIW4bjxGSULiZWk/acMZ+NHM7l0lx+Q0CaG7eZ3DMZS29SuTpJQ/ZAG6XX2NasgVjRJn+V+6PJb+iF/SYwn5wUXfMl97Rhw4+ZWUgL+7WpaD5K8IzlaUTGvnNE76VRa4LVzT8IqiKqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777570597; c=relaxed/simple; bh=DKpm77o7C+wmP2zqZP5HxdRKhRGoLrYB4dvKBgkzBM8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=isM5sIhYaMLVkI7ef7F//4L45jJRdgR3hkfrLj8/FvDjqYd8xfbIWrahBpEMJG8vPSYqeWTdseHHtE7L61XIa1w31U/SYy6B2Y58smEGJ1q6jFn/mgP18XXxiZVw9mDNlKpztKWdujkT0PyduQUoIgz6y5dxnxDL/NDAQ84c7ws= 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=UrT4YYij; 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="UrT4YYij" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777570587; 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=UrT4YYijiARh0wH8nEfK/HDhXBylCFUh3zGnnwajmhCdj7OIM2w1kBV7LylM+mB7RvJz3g Bp/jQcX2G6wGxxkgGD6csyYRRZ7lpUbmyapd3XYhd9zJDrWXE820fMNHW6nIsZ+FTn9ZTE 9r6psij7NAPn0tP3XoZdbP8bdGOt+pM= 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: netdev@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