]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix crash upon suspend/resume
authorMark Bloch <markb@mellanox.com>
Wed, 20 May 2020 17:32:08 +0000 (17:32 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 May 2020 20:07:52 +0000 (13:07 -0700)
commitd2c8d30af50f216e9f1add01f05a081cb4146e73
tree749b715643a7a803fb6468a6ec11cbdc17e82b68
parentd79ea736676a38f768f843e281664a8d3b1d500d
net/mlx5: Fix crash upon suspend/resume

Currently a Linux system with the mlx5 NIC always crashes upon
hibernation - suspend/resume.

Add basic callbacks so the NIC could be suspended and resumed.

Fixes: a76686a4b7e5 ("mlx5: Move pci device handling from mlx5_ib to mlx5_core")
Tested-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c