net/mlx5: Do not query pci info while pci disabled
authorRoy Novich <royno@nvidia.com>
Sun, 24 Jul 2022 06:49:07 +0000 (09:49 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Nov 2022 02:14:33 +0000 (18:14 -0800)
commit394164f9d5a3020a7fd719d228386d48d544ec67
tree7ac86b0c4193daed2f3eb37b1af266b4e0e6b833
parentbadbda1a01860c80c6ab60f329ef46c713653a27
net/mlx5: Do not query pci info while pci disabled

The driver should not interact with PCI while PCI is disabled. Trying to
do so may result in being unable to get vital signs during PCI reset,
driver gets timed out and fails to recover.

Fixes: fad1783a6d66 ("net/mlx5: Print more info on pci error handlers")
Signed-off-by: Roy Novich <royno@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Aya Levin <ayal@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c