]> 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)
commita9b7cf77015d979ae6bdd1a3785c6d512a94c220
tree749b715643a7a803fb6468a6ec11cbdc17e82b68
parent8578617793b027a40c8a4b50f290dcdaedc4790f
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: b19e7983b3ca ("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