]> git.baikalelectronics.ru Git - kernel.git/commit
atlantic: Fix issue in the pm resume flow.
authorSudarsana Reddy Kalluru <skalluru@marvell.com>
Thu, 23 Sep 2021 10:16:05 +0000 (03:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Sep 2021 12:24:14 +0000 (13:24 +0100)
commit81eea0e5767b9605c9a609a575859f203f14d0ea
treea2ccc615607335f90c05451b4142b0b32995f04b
parent71b58ddba267b38c95d3a9b5f08103b22e01548f
atlantic: Fix issue in the pm resume flow.

After fixing hibernation resume flow, another usecase was found which
should be explicitly handled - resume when device is in "down" state.
Invoke aq_nic_init jointly with aq_nic_start only if ndev was already
up during suspend/hibernate. We still need to perform nic_deinit() if
caller requests for it, to handle the freeze/resume scenarios.

Fixes: 6f235d164bcc ("atlantic: Fix driver resume flow.")
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>
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c