diff options
author | Harini Katakam <harini.katakam@xilinx.com> | 2018-06-20 17:04:20 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-21 15:01:06 +0900 |
commit | 64d7839af8c8f67daaf9bf387135052c55d85f90 (patch) | |
tree | 7d59de6ffe0b966393e97ad77dff7944c9b158e5 /tools/testing | |
parent | 30877961b1cdd6fdca783c2e8c4f0f47e95dc58c (diff) | |
download | op-kernel-dev-64d7839af8c8f67daaf9bf387135052c55d85f90.zip op-kernel-dev-64d7839af8c8f67daaf9bf387135052c55d85f90.tar.gz |
net: macb: Fix ptp time adjustment for large negative delta
When delta passed to gem_ptp_adjtime is negative, the sign is
maintained in the ns_to_timespec64 conversion. Hence timespec_add
should be used directly. timespec_sub will just subtract the negative
value thus increasing the time difference.
Signed-off-by: Harini Katakam <harini.katakam@xilinx.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions