3c59x: Rework suspend and resume
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 1 Oct 2009 03:11:11 +0000 (20:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Oct 2009 03:11:11 +0000 (20:11 -0700)
commit7bfc4ab5620d8169d2effc0dbb644f207f75a9e3
tree1403872368215e18d82a9d304f832e8d5df722bb
parenta55c0a0ed41533b3a7b32a6c8acdc1bb04a017b5
3c59x: Rework suspend and resume

As noticed by Alan Stern, there is still one issue with the driver:
we disable PCI IRQ on suspend, but other devices on the same IRQ
line might still need the IRQ enabled to suspend properly.

Nowadays, PCI core handles all power management work by itself, with
one condition though: if we use dev_pm_ops. So, rework the driver to
only quiesce 3c59x internal logic on suspend, while PCI core will
manage PCI device power state with IRQs disabled.

Suggested-by: Rafael J. Wysocki <rjw@sisk.pl>
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/3c59x.c