atlantic: Fix driver resume flow.
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Fri, 27 Aug 2021 11:52:25 +0000 (04:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:50:45 +0000 (09:50 +0200)
commit26fae720c1124cbfdc95a37379f402a1ced8a11a
treeda67f0c5b1bb90cdbe709ffedeada74df857bc7d
parentcb996dc9f93785145f129c183e17bd6abb3177b3
atlantic: Fix driver resume flow.

[ Upstream commit 57f780f1c43362b86fd23d20bd940e2468237716 ]

Driver crashes when restoring from the Hibernate. In the resume flow,
driver need to clean up the older nic/vec objects and re-initialize them.

Fixes: 8aaa112a57c1d ("net: atlantic: refactoring pm logic")
Signed-off-by: Sudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c