atlantic: Fix driver resume flow.
Subsystems (3)
PATCH 1/1 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.
--- drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +3 -0
@@ -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;
Signature · 1 line
2.27.0
Jakub Kicinski
maintainerQuoted 15 lines · On Fri, 27 Aug 2021 04:52:25 -0700 Sudarsana Reddy Kalluru wrote:
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]>--- drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c | 3 +++ 1 file changed, 3 insertions(+)drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +0
-0
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c static int atl_resume_common(struct device *dev, bool deep) · line 421
Quoted 5 lines
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +2
-0@@ -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);
Why does the deinit() happen on resume, not suspend?
Quoted 3 lines
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c +0
-0ret =aq_nic_init (nic);if (ret) goto err_exit;
This patch was applied to netdev/net.git (refs/heads/master):
Hello:
This patch was applied to netdev/net.git (refs/heads/master):
Quoted 8 lines · On Fri, 27 Aug 2021 04:52:25 -0700 you wrote:
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]>[...]
Here is the summary with links:
- [net,1/1] atlantic: Fix driver resume flow.
https://git.kernel.org/netdev/net/c/57f780f1c433
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html