]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Mon, 27 Feb 2017 02:03:28 +0000 (18:03 -0800)
commit6c5c3a3757dd70c03997a834792f99a0ee854f39
tree512d4b564f1cf75ff61b8e3b7a6817a14af1448a
parent2e18f10dfd55ec5dee6ce356393eb3e7f91be215
bnx2x: Use the correct divisor value for PHC clock readings.

Orabug: 25477835

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>
(cherry picked from commit a6e2846cacf97d4c70c5e923325b015cfa1e9053)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c