Skip to content

Commit 2d2d97d

Browse files
mosheshemesh2gregkh
authored andcommitted
net/mlx5: Drain firmware reset in shutdown callback
[ Upstream commit 5846a36 ] Invoke drain_fw_reset() in the shutdown callback to ensure all firmware reset handling is completed before shutdown proceeds. Fixes: 16d42d3 ("net/mlx5: Drain fw_reset when removing device") Signed-off-by: Moshe Shemesh <moshe@nvidia.com> Reviewed-by: Shay Drori <shayd@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/1765284977-1363052-3-git-send-email-tariqt@nvidia.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5af49c5 commit 2d2d97d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core

drivers/net/ethernet/mellanox/mlx5/core/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,7 @@ static void shutdown(struct pci_dev *pdev)
21892189

21902190
mlx5_core_info(dev, "Shutdown was called\n");
21912191
set_bit(MLX5_BREAK_FW_WAIT, &dev->intf_state);
2192+
mlx5_drain_fw_reset(dev);
21922193
mlx5_drain_health_wq(dev);
21932194
err = mlx5_try_fast_unload(dev);
21942195
if (err)

0 commit comments

Comments
 (0)