]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: Use the correct divisor value for PHC clock readings.
authorSudarsana Reddy Kalluru <sudarsana.kalluru@cavium.com>
Fri, 21 Oct 2016 06:09:17 +0000 (02:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Oct 2016 21:34:41 +0000 (17:34 -0400)
commit1463e9ca2749fb8f069ca2529b6388022dbf06c6
tree6bf7c03badca808ca5ce99d5d68097c6cbe8fdc2
parent8bcd079423812411118618e36a387671fd3d50f0
bnx2x: Use the correct divisor value for PHC clock readings.

Time Sync (PTP) implementation uses the divisor/shift value for converting
the clock ticks to nanoseconds. Driver currently defines shift value as 1,
this results in the nanoseconds value to be calculated as half the actual
value. Hence the user application fails to synchronize the device clock
value with the PTP master device clock. Need to use the 'shift' value of 0.

Signed-off-by: Sony.Chacko <Sony.Chacko@cavium.com>
Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c