All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 net-next 0/3] net: stmmac: re-configure tas basetime after ptp time adjust
@ 2021-06-01  8:38 ` Xiaoliang Yang
  0 siblings, 0 replies; 18+ messages in thread
From: Xiaoliang Yang @ 2021-06-01  8:38 UTC (permalink / raw)
  To: davem, joabreu, kuba, alexandre.torgue, peppe.cavallaro, mcoquelin.stm32
  Cc: netdev, boon.leong.ong, weifeng.voon, vee.khee.wong, tee.min.tan,
	mohammad.athari.ismail, linux-stm32, linux-arm-kernel,
	linux-kernel, leoyang.li, vladimir.oltean, qiangqing.zhang,
	rui.sousa, mingkai.hu, yangbo.lu, xiaoliang.yang_1

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.

Xiaoliang Yang (3):
  net: stmmac: separate the tas basetime calculation function
  net: stmmac: add mutex lock to protect est parameters
  net: stmmac: ptp: update tas basetime after ptp adjust

 drivers/net/ethernet/stmicro/stmmac/stmmac.h  |  3 ++
 .../net/ethernet/stmicro/stmmac/stmmac_ptp.c  | 41 ++++++++++++++++-
 .../net/ethernet/stmicro/stmmac/stmmac_tc.c   | 46 +++++++++++++------
 include/linux/stmmac.h                        |  1 +
 4 files changed, 77 insertions(+), 14 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-06-16 17:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01  8:38 [PATCH v1 net-next 0/3] net: stmmac: re-configure tas basetime after ptp time adjust Xiaoliang Yang
2021-06-01  8:38 ` Xiaoliang Yang
2021-06-01  8:38 ` [PATCH v1 net-next 1/3] net: stmmac: separate the tas basetime calculation function Xiaoliang Yang
2021-06-01  8:38   ` Xiaoliang Yang
2021-06-01 10:58   ` kernel test robot
2021-06-01 10:58     ` kernel test robot
2021-06-01  8:38 ` [PATCH v1 net-next 2/3] net: stmmac: add mutex lock to protect est parameters Xiaoliang Yang
2021-06-01  8:38   ` Xiaoliang Yang
2021-06-01  8:38 ` [PATCH v1 net-next 3/3] net: stmmac: ptp: update tas basetime after ptp adjust Xiaoliang Yang
2021-06-01  8:38   ` Xiaoliang Yang
2021-06-01 11:21   ` kernel test robot
2021-06-01 11:21     ` kernel test robot
2021-06-02 10:18   ` Rui Sousa
2021-06-02 10:18     ` Rui Sousa
2021-06-09  9:03     ` Xiaoliang Yang
2021-06-09  9:03       ` Xiaoliang Yang
2021-06-16 17:12       ` Rui Sousa
2021-06-16 17:12         ` Rui Sousa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.