Skip to content
Commit bea5027e authored by Radu Pirea (NXP OSS)'s avatar Radu Pirea (NXP OSS) Committed by Bruce Ashfield
Browse files

net: phy: nxp-c45-tja11xx: read egress ts on TJA1120

commit 9d354f9638454aacc9e9c56fe33f63961a7dcce5 from
https://github.com/nxp-auto-linux/linux



The egress timestamp FIFO/circular buffer work different on TJA1120 than
TJA1103.

For TJA1103 the new timestamp should be manually moved from the FIFO to
the hardware buffer before checking if the timestamp is valid.

For TJA1120 the hardware will move automatically the new timestamp
from the FIFO to the buffer and the user should check the valid bit, read
the timestamp and unlock the buffer by writing any of the buffer
registers(which are read only).

Another change for the TJA1120 is the behaviour of the EGR TS IRQ bit.
This bit was a self-clear bit for TJA1103, but now should be cleared
before reading the timestamp.

Issue: ALB-10440

Signed-off-by: default avatarRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Link: https://lore.kernel.org/r/20230731091619.77961-8-radu-nicolae.pirea@oss.nxp.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
(cherry picked from commit bdb4c5b8)
Signed-off-by: default avatarZhantao Tang <zhantao.tang@windriver.com>
parent ec14ca7a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment