]> 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)
commitbb394f4c69aa49d7c0c286c926b7d125cd30b6c5
treebac67b55f9404b84887b81db2a58c0e0a59693ef
parent6f935a1383766afd166bbc24f8f99c671573d873
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: 58c6894aa3af ("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