These fixes affect existing ptp_ocp boards and do not add WiWi support.
They were identified in the public review of the WiWi series and are
split out so they can be reviewed and backported independently.
Prevent timestamp rearming during detach with a mutex-protected stopping
state. Then correct DPLL selector values, disabled-input frequency
reporting and the DCF77 output frequency. Each fix has its own Fixes tag.
Validation used source-derived C tests under ASan/UBSan. The old source
reproduces rearming after detach's disable. The new source rejects late
enables, waits for an enable already in progress, and drains a mocked
active IRQ. Targeted mutations of each DPLL fix fail the regression
tests. The driver object builds against this net base with W=1 and
KCFLAGS=-Werror. No physical card, real IRQ delivery or in-kernel
use-after-free reproduction was tested for these fixes.
The report came from netdev's Sashiko AI review. Codex prepared the code,
tests and changelogs from that review and the upstream sources, following
the request to separate common fixes and validate removal ordering.
This origin information follows Documentation/process/generated-content.rst.
Related review:
https://lore.kernel.org/r/179502617840.3136.12704245716223038161@kernel.org (local)
WiWi v4 will be based on these fixes after they are available in
net-next; it will not carry a second copy of the common fixes.
Ahmad Byagowi (4):
ptp: ocp: prevent timestamp rearming during detach
ptp: ocp: use hardware selectors in DPLL frequency operations
ptp: ocp: report disabled SMA inputs consistently over DPLL
ptp: ocp: correct the DCF output frequency
drivers/ptp/ptp_ocp.c | 30 ++++++++++++++++++++++++++----
1 file changed, 26 insertions(+), 4 deletions(-)
base-commit: 2a324a58a084c5cfd7e5a2f55e0786bee170a4a5
--
2.54.0 (Apple Git-157)