sky2: program proper register for fiber PHY
Driver was reading value from one register, setting bit and then writing the wrong register. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
Родитель
56069c0fdd
Коммит
34dd962b74
|
@ -364,7 +364,7 @@ static void sky2_phy_init(struct sky2_hw *hw, unsigned port)
|
||||||
/* for SFP-module set SIGDET polarity to low */
|
/* for SFP-module set SIGDET polarity to low */
|
||||||
ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
|
ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
|
||||||
ctrl |= PHY_M_FIB_SIGD_POL;
|
ctrl |= PHY_M_FIB_SIGD_POL;
|
||||||
gm_phy_write(hw, port, PHY_MARV_CTRL, ctrl);
|
gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg);
|
gm_phy_write(hw, port, PHY_MARV_EXT_ADR, pg);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче