Article View: linux.kernel.netdev
Article #23655Re: [PATCH net v6 5/8] ptp: ocp: report disabled SMA inputs as zero Hz
From: netdev-bot+sashiko
Date: Fri, 27 Nov 2026 16:48
Date: Fri, 27 Nov 2026 16:48
77 lines
10947 bytes
10947 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The changelog blames a 'stale selector frequency', but that is
not what happens on the normal disable path.
- [Low] Two submission-hygiene problems.
--
ptp: ocp: report disabled SMA inputs as zero Hz
This commit makes ptp_ocp_dpll_frequency_get() report zero frequency for
disabled SMA input pins by forcing the selector value to SMA_DISABLE. The
goal is to let a DPLL frequency set re-enable a disabled input, since the
DPLL core compares the request against the current frequency first.
> A disabled SMA input has no active signal and should report zero frequency through DPLL. The DPLL core reads the current frequency before applying a new value, so reporting the stale selector frequency can prevent a disabled input from being re-enabled.
[Severity: Low]
Does "stale selector frequency" accurately describe what happens here?
When an input is disabled through sysfs, ptp_ocp_sma_store_val() writes 0
to the selector instead of leaving the old value in place:
drivers/ptp/ptp_ocp.c:ptp_ocp_sma_store_val() {
...
if (sma->disabled)
val = 0;
...
}
In ptp_ocp_sma_in[] and ptp_ocp_adva_sma_in[], selector 0x0000 is the
10 MHz entry:
{ .name = "10Mhz", .value = 0x0000, .frequency = 10000000 },
So before this patch, a disabled input always read back as 10 MHz. It did
not read back as the previously configured source. For example, an input
set to PPS1 and then disabled would report 10 MHz, not 1 Hz.
The result is that only a 10 MHz re-enable request was silently dropped,
by this check in dpll_pin_freq_set():
if (freq == old_freq)
return 0;
On adva_x1 boards, ptp_ocp_adva_x1_sma_in[] has no 0x0000 entry. A
disabled input there already reported 0, so those boards were not
affected.
The code change itself looks correct. Could the changelog describe the
clash between the disabled value and the 0x0000 / 10 MHz encoding? It
would also help to name the affected frequency and boards, so backporters
can judge which boards and requests were affected.
> A coding assistant helped check the DPLL get-before-set behavior, develop the regression test and prepare this changelog.
[Severity: Low]
This isn't a bug, but which regression test does this refer to? The commit
only adds two lines to drivers/ptp/ptp_ocp.c and includes no selftest or
KUnit change, so the test can't be reviewed or run.
> Signed-off-by: Ahmad Byagowi <ahmadexp@gmail.com>
The author line is "ahmadexp <ahmadexp@gmail.com>", but the Signed-off-by
is "Ahmad Byagowi <ahmadexp@gmail.com>". The email matches and the name
does not, which checkpatch reports as a From/Signed-off-by name mismatch.
If applied as is, the commit would be credited to "ahmadexp". The other
patches in the series have the same metadata.
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261126-timecard-driver-v6-0-ahmadexp%40gmail.com
Technical Details
Message-ID:
<179579808454.3135.16893919920037495221@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372855-linux-kernel-netdev=dewy.ruReferences:
<20261126-timecard-driver-v6-5-ahmadexp@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372855-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v6 5/8] ptp: ocp: report disabled SMA inputs as zero Hz Date: Fri, 27 Nov 2026 16:48:04 +0000 Organization: Usenet Network Message-ID: <179579808454.3135.16893919920037495221@kernel.org> References: <20261126-timecard-driver-v6-5-ahmadexp@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="775816"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:pCF7kDcOoC5YupjmwzStIjVx9PM= sha256:9Ws9bdl9Hkyz9vzA3I2+neIGLn0oWpzJjgjXWCR9UBo= sha1:On1Do5K4XhKEk6WtSQ16d0l+F0U= sha256:74yF3J6BYT61vXkG0TtzLNbzhQKtDGbVD9vpVOD4i1c= 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 476A7125F63; Fri, 27 Nov 2026 19:48:45 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org 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 gX1gkSk_4Nxm; Fri, 27 Nov 2026 19:48:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-372855-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id C4FFB125F62; Fri, 27 Nov 2026 19:48:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 54D2D6057A4; Fri, 27 Nov 2026 16:48:33 +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=1795798087; b=h6HjZlPOYBOd95M+P5uB0XFid+qw0tK/VDvFqz3Q+KnQUVMJznR6cvVxyQzJPggoJCFe 1zSbYJWo5EajRUXz5WWvVH516wrQPs/7bWmNea2EFr6JofVZ2v7kNzmGjI7RYKXgxgCf/ Vi/e7eeqQ5uaZDdVMFIS65qN0jwhqtkQTVugE2P8ATu/qVXIBWeRrfrrH870OFXqC8/HT pGSB6MLQppA0skUKPZYxQIMGWoQV4n0vWiHM9VlbXvfJomRlqgikuRDBdHU+4YiB73WW7 TR6wIDMjBlnfqZaj68X+nB/PlYLls1C7b3ui74y7EwdhA7ktL0mw32tOTnDXVMWJkcw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795798087; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=iVhVBEq6AUVU3m3tUfRFq2nLGDToQzbrqHjrAC4ShDM=; b=DOOIvNYTQ0+AV0J6CBmiavMuCC9HcZdSlZD5kvXGGMuC1kNm4v+Nupc04JT3G9o5pRmK Q9REzoR0N9NRoPrYVW+HYogsRV4A7ZzOfy4/jgB2AgfTHyH3a2Atnaiu0pVqtljEedx1/ 5/lZpmJcLgpVUYurNFB818EqqVn9NJoFg/4c8E4O1a0wr3KqgqVpPn6PYuYHZ1RBT/ena WIfKROeCi9dJb46jfTAUM60rno24+rD2oIAxX78zBwOsUj9UPjsZ5jp8+eE1j8nbVYxVM MX5WfNMyh/PlA16dLtBDggESXD/SFazdQG3nygqumBrPvcjHIvO5cBNkRezUKpX7LUQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mUfOYgNh; 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 236DA606A6A3; Fri, 27 Nov 2026 16:48:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mUfOYgNh X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795798086; b=Q8BpT/yUSeDXdOHLWDOqWA/KHxMeLXEzVZuCmTslLUTZBM9iMPDzl9e+FFWWX5in/FOR py/FjOk6/37Vx5tugpgvRSzov5jRLSi9sUGx+dS61e1h5J+qK0lGoH1KzCYKTz/5HT1Pg FdYNTAyK+peFJ84n/LJrGqwrD51OxeDAwg7+1mPVf9xyFDSsYuoX48IH3i+pzpKpsIWn6 cYdToor0xCdwtu9eOgPJEYyII95vd2sYzBb7iBKVy2/1vtT1nlHo3XgRpd40zfhtm6Ffn +1NjWHzZcq02gW7sduaEPqB+2+tgyTWli1rzsHz9MCSUnzUWPG5+eD/744fxnqcgLPw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795798086; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=iVhVBEq6AUVU3m3tUfRFq2nLGDToQzbrqHjrAC4ShDM=; b=jacQtOE2EiBgsKOIqi0vn6nxi5dSpm6s4dwL5EP5+RsaDdKf8kIg/2BkVU8KrhnBv/to 2r1zvYqSnZfXT52Y/RSkw8b2ErA8twEa5h2w23sWldkQkLAT5cyy3WawFmqU6epLAuzfs t+Y5Q1VerWKnv17LM/AzFpVQNpWV4PLfwzrNZgL3jSJw4N9MDvED/G+e4eUa5PK49hIa9 SGxWdlknGg88hiFtt4NAqmnnV0OLx9Ua9HrVNvd5lfMzsISnA3mirGoeQN6HzCqnEBttS EwNSA4mj99OU8pGIY19hGBDNDiGoujT7tpem3a9yTU4D0k9LYoAgEuGirdMkTsi79yA== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mUfOYgNh; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 452A9606A698; Fri, 27 Nov 2026 16:48:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E993B1F0092B; Fri, 27 Nov 2026 16:48:04 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795798085; bh=iVhVBEq6AUVU3m3tUfRFq2nLGDToQzbrqHjrAC4ShDM=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=mUfOYgNh/wxVB+F1AdtBMUx831Q5dIxxT57GlepknxyROZMDH15rFN6rthGkScOKp 40UWfkJMwtxUtT/PPyGjbJa/npUcwS2ePZGUHXU+QnkDeZ5+BTA2w4iXlLY4OB4tJw 0Pt6NB/DofG8awG837jvQEPEDVRLepEoi2e28g2Bt5tH297yun56XBjo5c1IGFc6zu g1aYx2JIQr0dWKaee5CtL+9xIpU8MalvT2NMfckT5cUH1v5qbNI2RPVmLikOGTQQik KYqshrPqYlfgdV/R5/if1yGEAtxhMHdfIGP4LkN7ibhMo4eJTB0o+ubmGtOaaoA9NS E/PXxQuMpkxdQ== X-Cc: netdev@vger.kernel.org, richardcochran@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, vladimir.oltean@nxp.com, vadim.fedorenko@linux.dev, andrew@lunn.ch, linux-kernel@vger.kernel.org, arkadiusz.kubalewski@intel.com, jiri@resnulli.us, jonathan.lemon@gmail.com X-In-Reply-To: <20261126-timecard-driver-v6-5-ahmadexp@gmail.com> X-sashiko-severity: Low 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