]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Add support for sync reset using hot reset
authorMoshe Shemesh <moshe@nvidia.com>
Wed, 11 Sep 2024 20:17:52 +0000 (13:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Sep 2025 13:30:23 +0000 (15:30 +0200)
commit8da591ae26145e374a9d2148496eed810a5d4f7b
tree8602d2b486583fc13ea82e7d181d8b4fdea22d9b
parent6292688e07d066893e85dac7c28db3c78a1c2358
net/mlx5: Add support for sync reset using hot reset

[ Upstream commit 57502f62678ced0149d415324931bde37b42885a ]

On device that supports sync reset for firmware activate using hot
reset, the driver queries the required reset method while handling the
sync reset request. If the required reset method is hot reset, the
driver will use pci_reset_bus() to reset the PCI link instead of the
link toggle.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/20240911201757.1505453-11-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 902a8bc23a24 ("net/mlx5: Fix lockdep assertion on sync reset unload event")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fw_reset.c
drivers/net/ethernet/mellanox/mlx5/core/main.c