Commit 57f780f1 authored by Sudarsana Reddy Kalluru's avatar Sudarsana Reddy Kalluru Committed by David S. Miller
Browse files

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: 8aaa112a ("net: atlantic: refactoring pm logic")
Signed-off-by: default avatarSudarsana Reddy Kalluru <skalluru@marvell.com>
Signed-off-by: default avatarIgor Russkikh <irusskikh@marvell.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2619835e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;