net/mlx4_core: Update the HCA core clock frequency after INIT_PORT
authorMajd Dibbiny <majd@mellanox.com>
Tue, 27 Jan 2015 13:58:09 +0000 (15:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jan 2015 01:12:58 +0000 (17:12 -0800)
commit6d6e996c20f27091c09c813e2e73c507602839e3
tree2e6934bb871f78f669e996c91bfd35f766bfabc2
parentcb2147a925895f843c1f2e8124878e3e60236063
net/mlx4_core: Update the HCA core clock frequency after INIT_PORT

The firmware might change the hca core clock frequency after the driver
issues the INIT_PORT command. Therefore we need to query the new
value again and save in to the cached dev caps.

Fixes: ddd8a6c1 ('net/mlx4_core: Read HCA frequency and map internal clock')
Signed-off-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c