net: mana: Support hibernation and kexec
authorDexuan Cui <decui@microsoft.com>
Sat, 30 Oct 2021 00:54:08 +0000 (17:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Nov 2021 13:21:49 +0000 (13:21 +0000)
commit635096a86edb067d55a1e04b4a918f5c6dac0c51
treed739b2dcd39b03b1a7db755215e76a1816166f8c
parent62ea8b77ed3b7086561765df0226ebc7bb442020
net: mana: Support hibernation and kexec

Implement the suspend/resume/shutdown callbacks for hibernation/kexec.

Add mana_gd_setup() and mana_gd_cleanup() for some common code, and
use them in the mand_gd_* callbacks.

Reuse mana_probe/remove() for the hibernation path.

Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microsoft/mana/gdma_main.c
drivers/net/ethernet/microsoft/mana/mana.h
drivers/net/ethernet/microsoft/mana/mana_en.c