]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Fix fallback from MSI-X to INTx
authorBenjamin Poirier <bpoirier@suse.de>
Fri, 22 May 2015 23:12:26 +0000 (16:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2015 17:08:03 +0000 (13:08 -0400)
commit58429e111a086796a5a890e967aa865256bef188
tree04d8fa0083cf0ae0b4480a02a86a6d87902d7917
parent8f5cd6ce522f5e43978977e1c95620902393b8de
mlx4_core: Fix fallback from MSI-X to INTx

The test in mlx4_load_one() to remove MLX4_FLAG_MSI_X expects mlx4_NOP() to
fail with -EBUSY. It is also necessary to avoid the reset since the device
is not fully reinitialized before calling mlx4_start_hca() a second time.

Note that this will also affect mlx4_test_interrupts(), the only other user
of MLX4_CMD_NOP.

Fixes: 884cee4 ("net/mlx4_core: Activate reset flow upon fatal command cases")
Signed-off-by: Benjamin Poirier <bpoirier@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/cmd.c