]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: fw_reset: Don't try to load device in case PCI isn't working
authorShay Drory <shayd@nvidia.com>
Thu, 3 Nov 2022 06:55:40 +0000 (23:55 -0700)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 9 Nov 2022 18:30:43 +0000 (10:30 -0800)
commit7d167b4a4c810919ba1affd02fc6b7f40e7e6eeb
treebac67b55f9404b84887b81db2a58c0e0a59693ef
parente12de39c07a7872c1ac7250311bb60b74ff29f25
net/mlx5: fw_reset: Don't try to load device in case PCI isn't working

In case PCI reads fail after unload, there is no use in trying to
load the device.

Fixes: 5ec697446f46 ("net/mlx5: Add support for devlink reload action fw activate")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c