]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'stmmac-ptp'
authorDavid S. Miller <davem@davemloft.net>
Mon, 5 Jul 2021 17:16:18 +0000 (10:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jul 2021 17:16:18 +0000 (10:16 -0700)
commitfaf403a9782ed02538084f829600af6808e42c10
tree0cf6de55843143b4cec266d801c988cd998063fa
parent5b65da0505d1382f5e21e4c3618b3f983291871e
parent7069f0b8f5f3b59fb4420dc9a9e515c1704670f6
Merge branch 'stmmac-ptp'

Xiaoliang Yang says:

====================
net: stmmac: re-configure tas basetime after ptp time adjust

If the DWMAC Ethernet device has already set the Qbv EST configuration
before using ptp to synchronize the time adjustment, the Qbv base time
may change to be the past time of the new current time. This is not
allowed by hardware.

This patch calculates and re-configures the Qbv basetime after ptp time
adjustment.

v1->v2:
  Update est mutex lock to protect btr/ctr r/w to be atomic.
  Add btr_reserve to store basetime from qopt and used as origin base
time in Qbv re-configuration.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>