Article View: linux.kernel.netdev
Article #19422Re: [PATCH net v2 4/4] ptp: ocp: correct the DCF output frequency
From: Vadim Fedorenko
Date: Thu, 19 Nov 2026 22:24
Date: Thu, 19 Nov 2026 22:24
42 lines
10363 bytes
10363 bytes
On 19/11/2026 21:19, Ahmad Byagowi wrote:
> The output selector table uses 77000 Hz for DCF, whereas the input table
> and the DPLL supported frequency list use 77500 Hz. A request for the
> advertised DCF77 frequency consequently fails on an output, and reading
> that output reports a frequency outside its advertised set.
>
> Use 77500 Hz for the DCF output selector as well.
>
> Reported by the netdev Sashiko AI review and confirmed by code
> inspection. Source-derived C regression tests pass with ASan/UBSan;
> restoring the faulty selector, mask, disabled-state or DCF value makes
> the corresponding regression fail. Tests use stubbed MMIO, not hardware.
> The driver object builds on current net with W=1 and KCFLAGS=-Werror. No
> physical card was tested.
>
> Codex prepared the fix, tests and changelog from the review and upstream
> source, at the request to separate common-driver fixes from WiWi support
> and validate removal ordering.
>
> Fixes: 09eeb3aecc6c ("ptp_ocp: implement DPLL ops")
> Link: https://lore.kernel.org/r/179502617840.3136.12704245716223038161@kernel.org
> Signed-off-by: Ahmad Byagowi <ahmadexp@gmail.com>
> ---
> drivers/ptp/ptp_ocp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ptp/ptp_ocp.c b/drivers/ptp/ptp_ocp.c
> index 06d05fac6e..0d3d9ffd1f 100644
> --- a/drivers/ptp/ptp_ocp.c
> +++ b/drivers/ptp/ptp_ocp.c
> @@ -1375,7 +1375,7 @@ static const struct ocp_selector ptp_ocp_sma_out[] = {
> { .name = "GNSS1", .value = 0x0004, .frequency = 1 },
> { .name = "GNSS2", .value = 0x0008, .frequency = 1 },
> { .name = "IRIG", .value = 0x0010, .frequency = 10000 },
> - { .name = "DCF", .value = 0x0020, .frequency = 77000 },
> + { .name = "DCF", .value = 0x0020, .frequency = 77500 },
> { .name = "GEN1", .value = 0x0040 },
> { .name = "GEN2", .value = 0x0080 },
> { .name = "GEN3", .value = 0x0100 },
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Technical Details
Message-ID:
<acbd7123-7a9e-4c4d-ad37-d1e8c6c5cd84@linux.dev>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367381-linux-kernel-netdev=dewy.ruReferences:
<20261119-timecard-common-v2-078fe69f33-0-ahmadexp@gmail.com> <20261119-timecard-common-v2-078fe69f33-4-ahmadexp@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367381-linux-kernel-netdev=dewy.ru From: vadim.fedorenko@linux.dev (Vadim Fedorenko) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 4/4] ptp: ocp: correct the DCF output frequency Date: Thu, 19 Nov 2026 22:24:17 +0000 Organization: Usenet Network Message-ID: <acbd7123-7a9e-4c4d-ad37-d1e8c6c5cd84@linux.dev> References: <20261119-timecard-common-v2-078fe69f33-0-ahmadexp@gmail.com> <20261119-timecard-common-v2-078fe69f33-4-ahmadexp@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="2996784"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:01QDW5/PpcSMunBp3gXMqawsLBM= sha256:NnpJ0EHjWmQ4a9z6mqQqjKP5GUiXIkh5mzt6gprFqBY= sha1:2hQTnvdsF69R5gr1xLjLj0mSe+c= sha256:hrTvorWrKHSWV/MRtoAPh0g/2nCBNgGaQtdDGZ/JSqM= Content-Language: en-US List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id AC63C1157C8; Fri, 20 Nov 2026 01:24:37 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=linux.dev X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KkAxjEYmfKDP; Fri, 20 Nov 2026 01:24:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367381-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 255A11157C5; Fri, 20 Nov 2026 01:24:24 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 46C87247306; Thu, 19 Nov 2026 22:24:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795127062; b=xQuVAW0it+U4gQZKBIXMs5uQ0kjbZNOBIMoJKTNybxQSG+U1nYCW5NkE3K0DdgIdgz1D uf0ZEDPOalYsA8FVqKzRxklrLzSbacsi2BS6bGharmF1uVfWuVEV/Tdl0Uke+6WIyMLUF xOl9fN7Z4BU003pmt+dfvZdyPa+WlavQc/5mC1txzzLP2+ASb33o8f5n6dBJsUST14+lf C6LC8n3JmR6YqnWNVs+5rZAl2bUCftzUz2QWJ0WIYbbw4lvhr+4KmZbOc/lXt1Q0Iv88T l7oPXLkcPPOvyG0Sx9qU94tsV46t75RRlT9IhWf4CRW8torlp8G5sRMaTa7xJum01oQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795127062; h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature: X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=fYKEgZx9a2Gppc4NBUi0/c5lafRQKy+TzPob86FA5DM=; b=xQHw+mK8QZ//hmG5+y62keSXDTwBP/44KVehlzPjzNlNv0oTp9+Wsn6/9pN2L/bS6YSU SCThZHQumsDYV0640Ld2tZf331R/zwJY3lKxDPZtS0870fHnIaYD9OmEy3ZHMC8A18RHy TRbnaRSyi+kY7b1K8aJMUdv+WP4voRLmd8ZDdWDCx5cE4i4uOOUUXp9BpgTkoQ2Sy9Iut V265L7PDcn7bJGZcMG3OPF5bXEAk4+d3eCILvI17a7s/ggsPpTra6//k1gigcMaQ0NHga xphryObcPMXnnYqB98s7hdw7dKga578P4k8u+SyRr6nE/GyT0ZdmIH8UFkGTCGjRT8w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=OV9igYyr; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1639E606A337; Thu, 19 Nov 2026 22:24:22 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=OV9igYyr X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.228 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795127061; b=iNaBaKcXcfusp2hY9EZTUsUk4fPrCgOrf0K2RadyBi9PuqMJugICgr0ShUdsAs5+YPtK Ps21c7+AKYv6yptj3Y2gJMFOqgbGkdoRHDDr0OqJoO/JtED71mNZ8+yBTVnD/jpFRwJd8 z4LHoGLdyeaC3wrjeqluvTTdctRAEsbwPSbxlxNIfAky1i02uvvBYTfJhGQiXgMn/Yj0D btUDTrigFeAUXtFKihtwHrXBKKdYj882aUXlfyNTVe2jE1F6VIr5M1wES5bb6BL5LmApq GLVrk4yc0nlzYJcEnRVfgjUOs5DfinYeBg0MD8vz4EY5jfsBv1fgjNoxPfm57kXA43g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795127061; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=fYKEgZx9a2Gppc4NBUi0/c5lafRQKy+TzPob86FA5DM=; b=eMA3HENs0QZWYjceD1QdCZGYEtE4i4hn6r7aD556vntw6DjX/MU59xvnY4XCd+s2ma6l H83HR2btea3rO1gqx7+jH2F/Zgc3qzAL35iclmyqZnehc/ssEkvLmA8l8hhMCVzIdjkaF U6I38BiORyn8WvXlz0PnLAdeUCCe9xpjmjLWXLEL7mlikMBjeuqyuHRTIWnqXKxUznu/J onPVAUlYs8MUtubmIIgiFzwPq6qv28oiN7QrbNI8OGDqLaK8dpF65dSS8zasZo7OsLTXe i0hO+1dC+lXvhlUIUcx3G8QsNcP3HBiWJufkYNJOgGbQBed1AAhVdnryZn2YIi8f8ZQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=OV9igYyr; arc=none smtp.remote-ip=95.215.58.228 X-Received: from mta1.migadu.com (out-228.mta1.migadu.com [95.215.58.228]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99632606A320 for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 22:24:20 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 99632606A320 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: netdev@vger.kernel.org X-DKIM-Signature: a=rsa-sha256; bh=jkwvPhHK1HiBXd3GktFSZ5VXaiZz/TgsOz9HPjukXdk=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795127058; v=1; x=1795731858; b=OV9igYyrM7FIeiDEMAOabNvFsqQVQ+T4Q48swIWEvANPzWZ17Z4dNwe9tGx+x4Z5nl4ghpMY I8RNtNqluR21nO9vs03+Svaa/x2RSCsL7wtV5mIyHXZrJOxwWAzPtvx2xDHaCbMAVPAmAjc/TQ5 +RofbXzBHmD1eM6JoBBfNCzQ= X-Envelope-To: netdev@vger.kernel.org X-Received: by smtp.migadu.com with ESMTPS id 2741b7962c2aa253; Thu, 19 Nov 2026 22:24:18 +0000 X-Mizu-Trace-ID: 2741b7962c2aa253 X-Migadu-Flow: FLOW_OUT X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-User-Agent: Mozilla Thunderbird X-Cc: andrew+netdev@lunn.ch, arkadiusz.kubalewski@intel.com, davem@davemloft.net, edumazet@kernel.org, jiri@resnulli.us, kuba@kernel.org, pabeni@redhat.com X-In-Reply-To: <20261119-timecard-common-v2-078fe69f33-4-ahmadexp@gmail.com>