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)
commitf4ecf29fd78d19a9301e638eaa1419e5c8fbdce1
tree04d8fa0083cf0ae0b4480a02a86a6d87902d7917
parentce0e5c522d3924090c20e774359809a7aa08c44c
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: f5aef5a ("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