forked from Minki/linux
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:
parent
56069c0fdd
commit
34dd962b74
@ -364,7 +364,7 @@ static void sky2_phy_init(struct sky2_hw *hw, unsigned port)
|
||||
/* for SFP-module set SIGDET polarity to low */
|
||||
ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user