ptp: ocp: support the WiWi production Time Card
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 5 repliesIn review
- v23 patches 2 repliesSuperseded
- v13 patches 2 repliesSuperseded
Changes in v3 from the cover letter
- 1/3: Identify patch 3's WiWi XIIC child as the first user.
- 2/3: Restrict the RAM-backed test to direct x86-64 MMIO. Exclude UML and indirect I/O; do not restrict the driver.
- 3/3: Match the board by its PCI IDs, validate revision and geometry separately, and select typed XIIC data from the static board match. Do not expose the SPI flash through MTD or devlink. Omit unsupported GNSS2 interfaces, preserve external PPS2, and clarify firmware build reporting. Refuse timing enables until the interrupt gate is open. Distinguish WiWi's PCI interface from legacy Celestica.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | i2c: xiic: allow platforms to require 32-bit register accessesdrivers/ include/ | +41 | 1 reply | |
| 2/3 | i2c: xiic: add KUnit coverage for register access modesMAINTAINERS drivers/ drivers/ +1 more | +111 | 1 reply | |
| 3/3 | ptp: ocp: support the WiWi revision 02 Time CardDocumentation/ drivers/ | +270 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH net-next v3 0/3] ptp: ocp: support the WiWi production Time Card
The WiWi Time Card (2163:1008, subsystem 10ee:0007) presents its timing peripherals behind a LitePCIe interface that requires aligned word MMIO. Add an opt-in access mode for XIIC, test both access modes, and support the revision 02 PCI interface in ptp_ocp. Patch 3 consumes patch 1. Could the I2C maintainers review patches 1 and 2 for an Ack to take them through net-next?
Changes since v2:
- 1/3: Identify patch 3's WiWi XIIC child as the first user.
- 2/3: Restrict the RAM-backed test to direct x86-64 MMIO. Exclude UML and indirect I/O; do not restrict the driver.
- 3/3: Match the board by its PCI IDs, validate revision and geometry separately, and select typed XIIC data from the static board match. Do not expose the SPI flash through MTD or devlink. Omit unsupported GNSS2 interfaces, preserve external PPS2, and clarify firmware build reporting. Refuse timing enables until the interrupt gate is open. Distinguish WiWi's PCI interface from legacy Celestica.
The driver objects build for x86-64 allmodconfig with W=1. All four XIIC KUnit cases passed on x86-64 QEMU with the same two I2C patches. An earlier revision of the driver on a revision 02 card confirmed 64 MSI-X vectors and an advancing PHC. The new board policy and timing guard have not been run on that card. No claim of PPS lock, UTC accuracy or masked-event replay is made.
Codex assisted with implementation, tests and changelogs using the board evidence, vendor revision rule and mailing-list feedback.
v2: https://lore.kernel.org/netdev/[email protected]/
v1: https://lore.kernel.org/netdev/[email protected]/
Ahmad Byagowi (3):
i2c: xiic: allow platforms to require 32-bit register accesses
i2c: xiic: add KUnit coverage for register access modes
ptp: ocp: support the WiWi revision 02 Time Card
Documentation/networking/devlink/ptp_ocp.rst | 47 +++- MAINTAINERS | 1 + drivers/i2c/busses/Kconfig | 15 ++ drivers/i2c/busses/i2c-xiic.c | 60 +++-- drivers/i2c/busses/tests/i2c_xiic_kunit.c | 91 +++++++ drivers/ptp/ptp_ocp.c | 242 +++++++++++++++++-- include/linux/platform_data/i2c-xiic.h | 3 + 7 files changed, 422 insertions(+), 37 deletions(-) create mode 100644 drivers/i2c/busses/tests/i2c_xiic_kunit.c
base-commit: 6964ff21c5d8b75649211a52dbfd92753e605649