]> 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)
commitf4f485cc3b14a9cafabee79aca9a4cedfeb90dd1
tree00b718553509b066a30df2f14cd310d317866c60
parent333e81c4189dbf03c1afb70750f76a3fff671fd4
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: daba72129334 ("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