]> Git Repo - linux.git/commitdiff
atlantic: Fix driver resume flow.
authorSudarsana Reddy Kalluru <[email protected]>
Fri, 27 Aug 2021 11:52:25 +0000 (04:52 -0700)
committerDavid S. Miller <[email protected]>
Sun, 29 Aug 2021 09:47:35 +0000 (10:47 +0100)
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 <[email protected]>
Signed-off-by: Igor Russkikh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c

index 59253846e8858aa14dee6ca46f3c22d106284138..f26d0373561914034e0ce3ad96d474719ec1f240 100644 (file)
@@ -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;
This page took 0.058452 seconds and 4 git commands to generate.