Skip to content
Commit 834bd238 authored by Radu Pirea (NXP OSS)'s avatar Radu Pirea (NXP OSS) Committed by Zhantao Tang
Browse files

net: phy: nxp-c45-tja11xx: read ext trig ts on TJA1120

commit 0886c946b94f4da0f4761d1b6f4af0e5d3c0ff5d from
https://github.com/nxp-auto-linux/linux



On TJA1120, the external trigger timestamp now has a VALID bit. This
changes the logic and we can't use the TJA1103 procedure.

For TJA1103, we can always read a valid timestamp from the registers,
compare the new timestamp with the old timestamp and, if they are not the
same, an event occurred. This logic cannot be applied for TJA1120 because
the timestamp is 0 if the VALID bit is not set.

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-11-radu-nicolae.pirea@oss.nxp.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
(cherry picked from commit 08e6547c)
Signed-off-by: default avatarZhantao Tang <zhantao.tang@windriver.com>
parent 3ae76ff0
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