diff options
author | Sudarsana Reddy Kalluru <skalluru@marvell.com> | 2021-08-27 04:52:25 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-29 10:47:35 +0100 |
commit | 57f780f1c43362b86fd23d20bd940e2468237716 (patch) | |
tree | 255d2169c34c79f55197b56536e470164a2d0377 /drivers/net/ethernet/aquantia | |
parent | 2619835e31cb0ed760e5cba546ac02af8917fc9a (diff) | |
download | linux-next-57f780f1c43362b86fd23d20bd940e2468237716.tar.gz |
atlantic: Fix driver resume flow.
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>
Diffstat (limited to 'drivers/net/ethernet/aquantia')
-rw-r--r-- | drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c index 59253846e885..f26d03735619 100644 --- a/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +++ b/drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c @@ -417,6 +417,9 @@ static int atl_resume_common(struct device *dev, bool deep) pci_restore_state(pdev); if (deep) { + /* Reinitialize Nic/Vecs objects */ + aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol); + ret = aq_nic_init(nic); if (ret) goto err_exit; |