]> 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)
commit4457317b501e44c15f039b576771101d1d9f6fff
treed05d553c211338349b6c600b49962a42f7ad320b
parentcc510f53dd5df30e8cdba255855430f490ff747f
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