Commit a0db28b8 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

sky2: resume clocks

Change the resume path to use pci write config for a couple of reasons:
1. pci_write_config_dword() allows for more error
   checking of PCI health after resume.

2. better to toggle this register on all chip types, since that
   is what vendor driver does.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bd011e88
...@@ -4859,10 +4859,11 @@ static int sky2_resume(struct pci_dev *pdev) ...@@ -4859,10 +4859,11 @@ static int sky2_resume(struct pci_dev *pdev)
pci_enable_wake(pdev, PCI_D0, 0); pci_enable_wake(pdev, PCI_D0, 0);
/* Re-enable all clocks */ /* Re-enable all clocks */
if (hw->chip_id == CHIP_ID_YUKON_EX || err = pci_write_config_dword(pdev, PCI_DEV_REG3, 0);
hw->chip_id == CHIP_ID_YUKON_EC_U || if (err) {
hw->chip_id == CHIP_ID_YUKON_FE_P) dev_err(&pdev->dev, "PCI write config failed\n");
sky2_pci_write32(hw, PCI_DEV_REG3, 0); goto out;
}
sky2_reset(hw); sky2_reset(hw);
sky2_write32(hw, B0_IMSK, Y2_IS_BASE); sky2_write32(hw, B0_IMSK, Y2_IS_BASE);
......
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