Skip to content

Commit

Permalink
[PATCH] sky2: save/restore base hardware irq during suspend/resume
Browse files Browse the repository at this point in the history
The hardware should be fully shut off during suspend, and the base
irq mask restored during resume.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Stephen Hemminger authored and Linus Torvalds committed Jun 13, 2006
1 parent 26ec43f commit 8ab8fca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3442,6 +3442,7 @@ static int sky2_suspend(struct pci_dev *pdev, pm_message_t state)
}
}

sky2_write32(hw, B0_IMSK, 0);
pci_save_state(pdev);
sky2_set_power_state(hw, pstate);
return 0;
Expand All @@ -3460,6 +3461,8 @@ static int sky2_resume(struct pci_dev *pdev)
if (err)
goto out;

sky2_write32(hw, B0_IMSK, Y2_IS_BASE);

for (i = 0; i < hw->ports; i++) {
struct net_device *dev = hw->dev[i];
if (dev && netif_running(dev)) {
Expand Down

0 comments on commit 8ab8fca

Please sign in to comment.