]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Check firmware sync reset requested is set before trying to abort it
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 8 Apr 2021 04:30:57 +0000 (07:30 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Jun 2021 01:30:20 +0000 (18:30 -0700)
commit5940e64281c09976ce2b560244217e610bf9d029
tree7ef80a7e049ce70748aa4e8cb9ec3e55f4376fa5
parentb38742e41177c339e891b74f3925862fa36debb1
net/mlx5: Check firmware sync reset requested is set before trying to abort it

In case driver sent NACK to firmware on sync reset request, it will get
sync reset abort event while it didn't set sync reset requested mode.
Thus, on abort sync reset event handler, driver should check reset
requested is set before trying to stop sync reset poll.

Fixes: 7dd6df329d4c ("net/mlx5: Handle sync reset abort event")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c