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: Radu 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: Jakub Kicinski <kuba@kernel.org> (cherry picked from commit bdb4c5b8) Signed-off-by: Zhantao Tang <zhantao.tang@windriver.com>
Please register or sign in to comment