diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-10-17 10:24:10 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@osdl.org> | 2006-10-17 10:24:10 -0700 |
commit | 7800fddcd05a7dc89276389b96664af4f7890ea7 (patch) | |
tree | 5c302f2906b3b36ab38fe4f19fd129534f556d8c /drivers/net | |
parent | 7c74ac1c236457e454804774e832046c1a7cc0bf (diff) | |
download | blackbird-op-linux-7800fddcd05a7dc89276389b96664af4f7890ea7.tar.gz blackbird-op-linux-7800fddcd05a7dc89276389b96664af4f7890ea7.zip |
sky2: don't reset PHY twice
Don't need to reset PHY twice on startup.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/sky2.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 6a594b001f58..20a8c34e6d53 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -356,16 +356,7 @@ static void sky2_phy_init(struct sky2_hw *hw, unsigned port) gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg); } - ctrl = gm_phy_read(hw, port, PHY_MARV_CTRL); - if (sky2->autoneg == AUTONEG_DISABLE) - ctrl &= ~PHY_CT_ANE; - else - ctrl |= PHY_CT_ANE; - - ctrl |= PHY_CT_RESET; - gm_phy_write(hw, port, PHY_MARV_CTRL, ctrl); - - ctrl = 0; + ctrl = PHY_CT_RESET; ct1000 = 0; adv = PHY_AN_CSMA; reg = 0; @@ -450,8 +441,6 @@ static void sky2_phy_init(struct sky2_hw *hw, unsigned port) sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_ON); else sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF); - - ctrl |= PHY_CT_RESET; } gma_write16(hw, port, GM_GP_CTRL, reg); |