]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Wait for FW readiness before initializing command interface
authorEli Cohen <eli@mellanox.com>
Thu, 8 Jun 2017 16:33:16 +0000 (11:33 -0500)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 15 Jun 2017 20:27:46 +0000 (23:27 +0300)
commit75108ee269a440f47ba3437d1dd6fd5e2a5f12b5
tree88faa0a4921d3c504f267ae29007e64336fc6923
parentce8b34b0965c4ef471726625fd9746bc0de58404
net/mlx5: Wait for FW readiness before initializing command interface

Before attempting to initialize the command interface we must wait till
the fw_initializing bit is clear.

If we fail to meet this condition the hardware will drop our
configuration, specifically the descriptors page address.  This scenario
can happen when the firmware is still executing an FLR flow and did not
finish yet so the driver needs to wait for that to finish.

Fixes: de5ca9db955d ('net/mlx5_core: Wait for FW readiness on startup')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c