]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3ab09eb8d06e3cccb8387de05e5d61be5835e830
tree2e6934bb871f78f669e996c91bfd35f766bfabc2
parent9b281ec01b1cc929e1822bd590397e0fcf68d8f2
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: 50c73c60 ('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