net/mlx5: fw reset: Skip device ID check if PCI link up failed
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 26 Jan 2023 06:58:33 +0000 (08:58 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 8 Feb 2023 00:29:54 +0000 (16:29 -0800)
commit114b295470e7c4dda3f2a7bec0ac9b35e0b94d06
treee00f3df2b1b326219b5ec107a0d19c13d86b245f
parent67257cba905d6c5660851968b55b7c5c3dc1ecc5
net/mlx5: fw reset: Skip device ID check if PCI link up failed

In case where after reset the PCI link is not ready within timeout, skip
reading device ID as if there is no PCI link up we can't have FW
response to pci config cycles either.

This also fixes err value not used and overwritten in such flow.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c