]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net/mlx5: Drain firmware reset in shutdown callback
authorMoshe Shemesh <moshe@nvidia.com>
Tue, 9 Dec 2025 12:56:10 +0000 (14:56 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Dec 2025 12:39:29 +0000 (13:39 +0100)
Invoke drain_fw_reset() in the shutdown callback to ensure all
firmware reset handling is completed before shutdown proceeds.

Fixes: 16d42d313350 ("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>
drivers/net/ethernet/mellanox/mlx5/core/main.c

index 024339ce41f19e0b29eccb5016d0f795885da041..cf53affe61ce22d6c7bc421eb3886507f4018e44 100644 (file)
@@ -2232,6 +2232,7 @@ static void shutdown(struct pci_dev *pdev)
 
        mlx5_core_info(dev, "Shutdown was called\n");
        set_bit(MLX5_BREAK_FW_WAIT, &dev->intf_state);
+       mlx5_drain_fw_reset(dev);
        mlx5_drain_health_wq(dev);
        err = mlx5_try_fast_unload(dev);
        if (err)