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 5E88832ED3A for ; Wed, 29 Apr 2026 15:08:36 +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=1777475317; cv=none; b=o8OQNjk5DvDBueOJ0FAkCAhtbfkGhCsacHmRF+n49S+uYsOn1UBzvYFw2nTIbZtF1kgpPGjmwJXiDam5hmUjGr6VO/YQnY0KoSO4QfAGIFGtGdRaB5wZDQ3QOYOkmWECiH0r51Sav7jAN/pWp2QBS0HvNOHZhC8pjxYD4UOEfdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777475317; c=relaxed/simple; bh=kQGgil5UtMbQLmT0vDByEJyWHWYRQNQUc/bdOI23AVc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gvRU7EraRCfGq9XiJijcOhT8036R9UEO2VCnprJy13ZVYsjmj/c4kbgxrex6RO5yrRs8LjCYJexESf/FaGjMD6bsOKn98oEx+L4ZAsbSPamBrod3E914op18nBgIlUN2KsYHhD6TI+8d3iF/mXS33Anca5M9wnIperWkvOkyzsA= 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=bw63088U; 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="bw63088U" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1777475315; 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=jmgVAR52adSNZivpuFC5mZuvwbrYOguZpZ/j6Z7n8jU=; b=bw63088UgzOZAJ3MZ4eaBIoMci3z9L1h1Evz5fLjH6YmYuqIGFjjqlz+djuXvyFJ6jWR+k v78tXmUlHhoniSs6bMHsUOzPU8AyshwyhlyYibGGt5SBeAqcmAOE3Zt3PuNZJ4EQAiW4/S SFNgOkyWOIxazZxOWcRKGhbuGfQrQjI= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-302-6tO-l2hcN0OUXDVHlhOFqQ-1; Wed, 29 Apr 2026 11:08:32 -0400 X-MC-Unique: 6tO-l2hcN0OUXDVHlhOFqQ-1 X-Mimecast-MFC-AGG-ID: 6tO-l2hcN0OUXDVHlhOFqQ_1777475307 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 047E71955F0B; Wed, 29 Apr 2026 15:08:26 +0000 (UTC) Received: from p16v.redhat.com (unknown [10.44.49.234]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 01D8319560B6; Wed, 29 Apr 2026 15:08:18 +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 0/2] dpll: rework fractional frequency offset reporting Date: Wed, 29 Apr 2026 17:08:15 +0200 Message-ID: <20260429150817.3059763-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.0 on 10.30.177.12 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