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)
commit8fc3e29be9248048f449793502c15af329f35c6e
tree749b715643a7a803fb6468a6ec11cbdc17e82b68
parent7c6d2ecbda83150b2036a2b36b21381ad4667762
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: 9603b61de1ee ("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