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 A8D0A2D7388 for ; Sat, 27 Sep 2025 08:49:42 +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=1758962984; cv=none; b=kZKnyu/++aP7Vo0WFxKObL5H+X1r5+bE2ZEu/1wL8zkqhMUodPz/EHkP2G6WXxEQCaN2h/Cn1W7wg7EGLuqoxNlMTjbFzqAIBe6WoZghFoXL956MizxZ/r/L9yklNsdAl8igbe7NX15KJz4qIEO3JNvNnwzYZ1rH+vLnBMBTa/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758962984; c=relaxed/simple; bh=Xbd4IBcFdDpKJyJon96xzhV7kbT5pBt+z3Ss0qeoKRg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=r/8pT1kTPSH0AW3vUOdwhQXL0QbjLrxLZXpIJqlBjWpZXUgaI+PA34Wz0G3I8tuVxWfb0ljmpbn1Mn29pE01mX9W/GYD6pHegb2nvOoZdCHhq8voEkPGldYg6wka6yh8GdURS0wtu6ZW0oqvt0Lui0VzJAKyEZcnzxS1X6SNivU= 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=QOQnp6wj; 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="QOQnp6wj" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1758962966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K9u9IXqfPjTiCjIxjNWCCDv4KZnnzChMeXmXwjNiBlE=; b=QOQnp6wjO4mH0Pis/zoZWgC89Jcz9nHQkP8kO3Q5t5xISb0hJLHfkQpyH4nEaUxE0WXTlH 1Dug8foW9RMJSqd/u3SZNyP0RVvn68rW4/3CAbdRa+L8I0KK+Z1k9GpmExsDVj7cMF3sHu LZV53ME1oPlUbWDGqkcoeiDrb30JegE= Received: from mx-prod-mc-08.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-170-HOnfv2MUM5isiZgU5GHcWQ-1; Sat, 27 Sep 2025 04:49:24 -0400 X-MC-Unique: HOnfv2MUM5isiZgU5GHcWQ-1 X-Mimecast-MFC-AGG-ID: HOnfv2MUM5isiZgU5GHcWQ_1758962960 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3B9D2180047F; Sat, 27 Sep 2025 08:49:20 +0000 (UTC) Received: from p16v.redhat.com (unknown [10.45.225.247]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E0AE919560A2; Sat, 27 Sep 2025 08:49:13 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Vadim Fedorenko , Arkadiusz Kubalewski , Jiri Pirko , Jonathan Corbet , Donald Hunter , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Prathosh Satish , Chuck Lever , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Schmidt , Petr Oros Subject: [PATCH net-next v2 0/3] dpll: add phase offset averaging factor Date: Sat, 27 Sep 2025 10:49:09 +0200 Message-ID: <20250927084912.2343597-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 For some hardware, the phase shift may result from averaging previous values and the newly measured value. In this case, the averaging is controlled by a configurable averaging factor. Add new device level attribute phase-offset-avg-factor, appropriate callbacks and implement them in zl3073x driver. Ivan Vecera (3): dpll: add phase-offset-avg-factor device attribute to netlink spec dpll: add phase_offset_avg_factor_get/set callback ops dpll: zl3073x: Allow to configure phase offset averaging factor Documentation/driver-api/dpll.rst | 18 +++++++- Documentation/netlink/specs/dpll.yaml | 6 +++ drivers/dpll/dpll_netlink.c | 66 ++++++++++++++++++++++++--- drivers/dpll/dpll_nl.c | 5 +- drivers/dpll/zl3073x/core.c | 38 +++++++++++++-- drivers/dpll/zl3073x/core.h | 15 +++++- drivers/dpll/zl3073x/dpll.c | 58 +++++++++++++++++++++++ drivers/dpll/zl3073x/dpll.h | 2 + include/linux/dpll.h | 6 +++ include/uapi/linux/dpll.h | 1 + 10 files changed, 199 insertions(+), 16 deletions(-) -- 2.49.1