]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Fix pci error recovery flow
authorMohamad Haj Yahia <mohamad@mellanox.com>
Thu, 18 Aug 2016 18:09:04 +0000 (21:09 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:09:24 +0000 (10:09 +0200)
commita53394da7e7a435bc086b17fe0903f248d773933
tree199fe6f7d72997f9036d3203ead233a45bd2f54c
parent7f93c3130e755e2875bc68f9e01878599333433f
net/mlx5: Fix pci error recovery flow

[ Upstream commit 1061c90f524963a0a90e7d2f9a6bfa666458af51 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/main.c