net/mlx5: Fix pci error recovery flow
authorMohamad Haj Yahia <mohamad@mellanox.com>
Thu, 18 Aug 2016 18:09:04 +0000 (21:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 23:09:55 +0000 (16:09 -0700)
commit1061c90f524963a0a90e7d2f9a6bfa666458af51
treea0523d30b419c8305f579734c9beb38de1b30bb3
parent506753b0b40997756d73f841c884a018f52401a0
net/mlx5: Fix pci error recovery flow

When PCI error is detected we should save the state of the pci prior to
disabling it.

Also when receiving pci slot reset call we need to verify that the
device is responsive.

Fixes: 89d44f0a6c73 ('net/mlx5_core: Add pci error handlers to mlx5_core
driver')
Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/main.c