Skip to content

Commit

Permalink
sky2: turn on clocks when doing resume
Browse files Browse the repository at this point in the history
Some of these chips are disabled until clock is enabled.
This fixes:
     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404107

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Apr 11, 2007
1 parent 9a87240 commit 1ad5b4a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3770,6 +3770,11 @@ static int sky2_resume(struct pci_dev *pdev)
goto out;

pci_enable_wake(pdev, PCI_D0, 0);

/* Re-enable all clocks */
if (hw->chip_id == CHIP_ID_YUKON_EX || hw->chip_id == CHIP_ID_YUKON_EC_U)
sky2_pci_write32(hw, PCI_DEV_REG3, 0);

sky2_reset(hw);

sky2_write32(hw, B0_IMSK, Y2_IS_BASE);
Expand Down

0 comments on commit 1ad5b4a

Please sign in to comment.