diff options
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 5b3a866a0b1c..fbe39d929277 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -2519,6 +2519,9 @@ static int __devinit sky2_init(struct sky2_hw *hw) | |||
2519 | { | 2519 | { |
2520 | u8 t8; | 2520 | u8 t8; |
2521 | 2521 | ||
2522 | /* Enable all clocks */ | ||
2523 | sky2_pci_write32(hw, PCI_DEV_REG3, 0); | ||
2524 | |||
2522 | sky2_write8(hw, B0_CTST, CS_RST_CLR); | 2525 | sky2_write8(hw, B0_CTST, CS_RST_CLR); |
2523 | 2526 | ||
2524 | hw->chip_id = sky2_read8(hw, B2_CHIP_ID); | 2527 | hw->chip_id = sky2_read8(hw, B2_CHIP_ID); |
@@ -2532,10 +2535,6 @@ static int __devinit sky2_init(struct sky2_hw *hw) | |||
2532 | dev_warn(&hw->pdev->dev, "this driver not yet tested on this chip type\n" | 2535 | dev_warn(&hw->pdev->dev, "this driver not yet tested on this chip type\n" |
2533 | "Please report success or failure to <netdev@vger.kernel.org>\n"); | 2536 | "Please report success or failure to <netdev@vger.kernel.org>\n"); |
2534 | 2537 | ||
2535 | /* Make sure and enable all clocks */ | ||
2536 | if (hw->chip_id == CHIP_ID_YUKON_EX || hw->chip_id == CHIP_ID_YUKON_EC_U) | ||
2537 | sky2_pci_write32(hw, PCI_DEV_REG3, 0); | ||
2538 | |||
2539 | hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; | 2538 | hw->chip_rev = (sky2_read8(hw, B2_MAC_CFG) & CFG_CHIP_R_MSK) >> 4; |
2540 | 2539 | ||
2541 | /* This rev is really old, and requires untested workarounds */ | 2540 | /* This rev is really old, and requires untested workarounds */ |