]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19e26555c2d65b46c7946715a76b9aaeb171e125
tree7ac86b0c4193daed2f3eb37b1af266b4e0e6b833
parent7f8ec57ee2711c7b7ce9aac2f9ec2d9d057fb389
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: 6c21b7068c31 ("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