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. Source-derived set/readback tests with stubbed MMIO fail at 77500 Hz with the old entry and pass with the correction under ASan/UBSan. No physical card was tested. The issue was reported by the Sashiko review. Codex assisted with this table correction, its regression test and the changelog. Fixes: 09eeb3aecc6c ("ptp_ocp: implement DPLL ops") Link: https://lore.kernel.org/r/179502617840.3136.12704245716223038161@kernel.org Reviewed-by: Vadim Fedorenko Signed-off-by: Ahmad Byagowi --- Changes in v5: - Renumbered from v4 patch 4; code and commit message unchanged. - Preserve Vadim's Reviewed-by on this unchanged correction. Testing: actual DPLL set/readback for 77500 Hz passes with stubbed MMIO; restoring 77000 Hz fails at runtime. 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 e27abe2c24c7..821ecd1a13c8 100644 --- a/drivers/ptp/ptp_ocp.c +++ b/drivers/ptp/ptp_ocp.c @@ -1373,7 +1373,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 },