]> git.baikalelectronics.ru Git - kernel.git/commit
net: atlantic: refactoring pm logic
authorNikita Danilov <ndanilov@marvell.com>
Thu, 7 Nov 2019 22:41:52 +0000 (22:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 03:54:42 +0000 (19:54 -0800)
commit9230224bc11a14e44b3b85bcea742b7c2487766f
treed05d553c211338349b6c600b49962a42f7ad320b
parentec790866ee1b3de227eaa878ce211f7a2feec1ae
net: atlantic: refactoring pm logic

We now implement .driver.pm callbacks, these
allows driver to work correctly in hibernate
usecases, especially when used in conjunction with
WOL feature.

Before that driver only reacted to legacy .suspend/.resume
callbacks, that was a limitation in some cases.

Signed-off-by: Nikita Danilov <ndanilov@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_nic.c
drivers/net/ethernet/aquantia/atlantic/aq_nic.h
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c