If there is no request from PTP application to read
Tx timestamp to OSD driver, OSD driver don't
read time to local OSI structure and it may lead to wrong
TX time on request from OSD.
Any PTP time stamp after 2 sync time is not useful.
As POR 2 sync time can be max equal to 1sec.
Remove old timestamp from driver structure if it older
than 1 sec.
Bug 3810821
Bug 3759976
Change-Id: I3173104b60bb50de05285ba1993291c489c34079
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2814646
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>