projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3bfdc5
)
sky2: turn on clocks when doing resume
author
Stephen Hemminger
<shemminger@linux-foundation.org>
Fri, 13 Apr 2007 18:34:00 +0000
(20:34 +0200)
committer
Adrian Bunk
<bunk@stusta.de>
Fri, 13 Apr 2007 20:58:24 +0000
(22:58 +0200)
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: Adrian Bunk <bunk@stusta.de>
drivers/net/sky2.c
patch
|
blob
|
history
diff --git
a/drivers/net/sky2.c
b/drivers/net/sky2.c
index 220ea49a4340a8363a123adefdb86e5af2edaa04..e01191a69385c61282dbf22fc4adb9de68a66ffe 100644
(file)
--- a/
drivers/net/sky2.c
+++ b/
drivers/net/sky2.c
@@
-2288,6
+2288,10
@@
static int sky2_reset(struct sky2_hw *hw)
return -EOPNOTSUPP;
}
+ /* Make sure and enable all clocks */
+ if (hw->chip_id == CHIP_ID_YUKON_EC_U)
+ sky2_pci_write32(hw, PCI_DEV_REG3, 0);
+
/* disable ASF */
if (hw->chip_id <= CHIP_ID_YUKON_EC) {
sky2_write8(hw, B28_Y2_ASF_STAT_CMD, Y2_ASF_RESET);
@@
-3431,6
+3435,9
@@
static int sky2_resume(struct pci_dev *pdev)
pci_restore_state(pdev);
pci_enable_wake(pdev, PCI_D0, 0);
+
+ if (hw->chip_id == CHIP_ID_YUKON_EC_U)
+ sky2_pci_write32(hw, PCI_DEV_REG3, 0);
err = sky2_set_power_state(hw, PCI_D0);
if (err)
goto out;