From: Ahmad Byagowi <ahmadexp@gmail.com>
To: netdev-bot+sashiko@kernel.org
Cc: netdev@vger.kernel.org, vadim.fedorenko@linux.dev,
richardcochran@gmail.com, andrew+netdev@lunn.ch,
arkadiusz.kubalewski@intel.com, davem@davemloft.net,
edumazet@kernel.org, jiri@resnulli.us, kuba@kernel.org,
linux-kernel@vger.kernel.org, pabeni@redhat.com
Subject: Re: [PATCH net 4/4] ptp: ocp: correct the DCF output frequency
Date: Sun, 22 Nov 2026 17:58:02 -0800 [thread overview]
Message-ID: <20261122-timecard-common-v4-e0db4ab1aa-r4-ahmadexp@gmail.com> (raw)
In-Reply-To: <179538007070.3135.8275620503580456948@kernel.org>
On Sun, 22 Nov 2026 at 20:41:10 +0000, netdev-bot+sashiko@kernel.org wrote:
> Should the ART input table get the same kind of fix? Commit 09eeb3aecc6c,
> the one in the Fixes: tag, also added this entry to ptp_ocp_art_sma_in[]:
>
> drivers/ptp/ptp_ocp.c:
> static const struct ocp_selector ptp_ocp_art_sma_in[] = {
> { .name = "PPS1", .value = 0x0001, .frequency = 1 },
> { .name = "10Mhz", .value = 0x0008, .frequency = 1000000 },
> { }
> };
>
> The entry is named "10Mhz" but has a frequency of 1 MHz. The "10Mhz"
> entry in ptp_ocp_art_sma_out[] uses 10000000.
Yes. The v4 series adds a separate fifth patch correcting that
ART input entry to 10000000. Keeping it separate preserves the narrow
DCF correction and its existing review tag.
> On get, ptp_ocp_dpll_frequency_get() reports 1000000 for an ART input
> that selects 0x08. That value is not in the pin's advertised set. Fixed
> pins hit this too, because sma[0].default_fcn is 0x08 ("IN: 10Mhz").
>
> Would it make sense to change that entry to 10000000 in this patch, or
> in a follow-up?
The new regression uses actual ART init/set/get functions and the DPLL
core's supported-frequency and get-before-set functions. It checks a
literal 10000000 Hz request, rejects 1000000, and verifies the fixed 0x08
default. The old source fails; the corrected source passes. These tests
use stubbed hardware operations, not an ART card.
The five-patch v4 series is posted separately to net:
https://lore.kernel.org/r/20261122-timecard-common-v4-e0db4ab1aa-0-ahmadexp@gmail.com
Ahmad
prev parent reply other threads:[~2026-11-23 1:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 20:05 [PATCH net 0/4] ptp: ocp: fix timestamp teardown and DPLL routing Ahmad Byagowi
2026-11-18 20:05 ` [PATCH net 1/4] ptp: ocp: prevent timestamp rearming during detach Ahmad Byagowi
2026-11-19 18:24 ` Vadim Fedorenko
2026-11-19 21:19 ` Ahmad Byagowi
2026-11-22 20:41 ` netdev-bot+sashiko
2026-11-23 1:58 ` Ahmad Byagowi
2026-11-18 20:05 ` [PATCH net 2/4] ptp: ocp: use hardware selectors in DPLL frequency operations Ahmad Byagowi
2026-11-22 20:41 ` netdev-bot+sashiko
2026-11-23 1:57 ` Ahmad Byagowi
2026-11-18 20:05 ` [PATCH net 3/4] ptp: ocp: report disabled SMA inputs consistently over DPLL Ahmad Byagowi
2026-11-22 20:41 ` netdev-bot+sashiko
2026-11-23 1:57 ` Ahmad Byagowi
2026-11-18 20:05 ` [PATCH net 4/4] ptp: ocp: correct the DCF output frequency Ahmad Byagowi
2026-11-22 20:41 ` netdev-bot+sashiko
2026-11-23 1:58 ` Ahmad Byagowi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261122-timecard-common-v4-e0db4ab1aa-r4-ahmadexp@gmail.com \
--to=ahmadexp@gmail.com \
--cc=andrew+netdev@lunn.ch \
--cc=arkadiusz.kubalewski@intel.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=vadim.fedorenko@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox