]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix large delays in PTP synchronization
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Mon, 20 Apr 2020 09:56:54 +0000 (15:26 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:54:30 +0000 (12:54 -0700)
commit5f2cce44525a544eda32c52bb308d0dca7b7c24a
tree00b718553509b066a30df2f14cd310d317866c60
parenta96cf8ee1a0f8dc1537ba4354e51db103581b268
cxgb4: fix large delays in PTP synchronization

Fetching PTP sync information from mailbox is slow and can take
up to 10 milliseconds. Reduce this unnecessary delay by directly
reading the information from the corresponding registers.

Fixes: a07dcf9e442d ("cxgb4: Add PTP Hardware Clock (PHC) support")
Signed-off-by: Manoj Malviya <manojmalviya@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ptp.c
drivers/net/ethernet/chelsio/cxgb4/t4_regs.h