Re: [PATCH net 4/4] ptp: ocp: correct the DCF output frequency

From: Ahmad Byagowi

Date: Sun Nov 22 2026 - 20:58:15 EST


On Sun, 22 Nov 2026 at 20:41:10 +0000, netdev-bot+sashiko@xxxxxxxxxx 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@xxxxxxxxx

Ahmad