Skip to content

Commit 57f780f

Browse files
Sudarsana Reddy Kallurudavem330
authored andcommitted
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: 8aaa112 ("net: atlantic: refactoring pm logic") Signed-off-by: Sudarsana Reddy Kalluru <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2619835 commit 57f780f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,9 @@ static int atl_resume_common(struct device *dev, bool deep)
417417
pci_restore_state(pdev);
418418

419419
if (deep) {
420+
/* Reinitialize Nic/Vecs objects */
421+
aq_nic_deinit(nic, !nic->aq_hw->aq_nic_cfg->wol);
422+
420423
ret = aq_nic_init(nic);
421424
if (ret)
422425
goto err_exit;

0 commit comments

Comments
 (0)