Commit d9b258c4 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Adrian Bunk

sky2: turn on clocks when doing resume

Some of these chips are disabled until clock is enabled.
This fixes:
     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404107Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent e3bfdc5b
...@@ -2288,6 +2288,10 @@ static int sky2_reset(struct sky2_hw *hw) ...@@ -2288,6 +2288,10 @@ static int sky2_reset(struct sky2_hw *hw)
return -EOPNOTSUPP; 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 */ /* disable ASF */
if (hw->chip_id <= CHIP_ID_YUKON_EC) { if (hw->chip_id <= CHIP_ID_YUKON_EC) {
sky2_write8(hw, B28_Y2_ASF_STAT_CMD, Y2_ASF_RESET); sky2_write8(hw, B28_Y2_ASF_STAT_CMD, Y2_ASF_RESET);
...@@ -3431,6 +3435,9 @@ static int sky2_resume(struct pci_dev *pdev) ...@@ -3431,6 +3435,9 @@ static int sky2_resume(struct pci_dev *pdev)
pci_restore_state(pdev); pci_restore_state(pdev);
pci_enable_wake(pdev, PCI_D0, 0); 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); err = sky2_set_power_state(hw, PCI_D0);
if (err) if (err)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment