]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commitbd019427bf3623ee3c7d2845cf921bbf4c14846c
tree00b718553509b066a30df2f14cd310d317866c60
parentf0212a5ebfa6cd789ab47666b9cc169e6e688732
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: 9c33e4208bce ("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