]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Device revision support
authorYishai Hadas <yishaih@mellanox.com>
Sun, 29 Jan 2017 16:56:14 +0000 (18:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jan 2017 20:26:42 +0000 (15:26 -0500)
commite4f411ae4a5c50819291f42984d5050d0ad9f526
tree3c6284dea2880618de9bb33d3c39075f4e544bc9
parentcc3cf4a86aaa7002d8952e32aa5e4b16d0bf3b1f
net/mlx4_core: Device revision support

The device revision field returned by the NodeInfo MAD is incorrect
on ConnectX3 devices.

This patch is driver side handling to complete a FW fix added at 2.11.1172.
INIT_HCA - bit at offset 0x0C.12 is set to 1 so that FW will report
correct device revision.

Older FW versions won't be affected from turning on that bit,
no capability bit is needed.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/fw.c