]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Aug 2016 23:09:55 +0000 (16:09 -0700)
commit0a11c77c44d4d0924d170958d88b5998634d4697
treea0523d30b419c8305f579734c9beb38de1b30bb3
parentc3754aa954b3d3142503062e0f38cdf1b764ce85
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: c493bfa6edc2 ('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