]> git.baikalelectronics.ru Git - kernel.git/commit
tulip: dmfe: use generic power management
authorVaibhav Gupta <vaibhavgupta40@gmail.com>
Mon, 22 Jun 2020 11:42:24 +0000 (17:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jun 2020 03:33:15 +0000 (20:33 -0700)
commitffb732a25e2d84c30ab39eb40fb33c151ded8b4f
tree28c05a818361254a2dd498fc90656f5712dede80
parentd2afcc00193c7f99b81b29cb911619b68ba25032
tulip: dmfe: use generic power management

With legacy PM hooks, it was the responsibility of a driver to manage PCI
states and also the device's power state. The generic approach is to let the
PCI core handle the work.

The legacy suspend() and resume() were making use of
pci_read/write_config_dword() to enable/disable wol. Driver editing
configuration registers of a device is not recommended. Thus replace them
all with device_wakeup_enable/disable().

Compile-tested only.

Signed-off-by: Vaibhav Gupta <vaibhavgupta40@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dec/tulip/dmfe.c