net/mlx4_en: Fix HW timestamp init issue upon system startup
authorEugenia Emantayev <eugenia@mellanox.com>
Thu, 17 Dec 2015 13:35:38 +0000 (15:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 19:48:04 +0000 (14:48 -0500)
commit90683061dd50b0d70f01466c2d694f4e928a86f3
tree130d1c049e345443cfd8048971fa7cdce28ed04f
parentfc9f5ea9b4ecbe9b7839c92f0a54261809c723d3
net/mlx4_en: Fix HW timestamp init issue upon system startup

mlx4_en_init_timestamp was called before creation of netdev and port
init, thus used uninitialized values.  Specifically - NIC frequency was
incorrect causing wrong calculations and later wrong HW timestamps.

Fixes: 1ec4864b1017 ('net/mlx4_en: Fixed crash when port type is changed')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Marina Varshaver <marinav@mellanox.com>
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_clock.c
drivers/net/ethernet/mellanox/mlx4/en_main.c
drivers/net/ethernet/mellanox/mlx4/en_netdev.c