From: Stephen Hemminger Date: Thu, 24 May 2007 22:22:45 +0000 (-0700) Subject: sky2: program proper register for fiber PHY X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=34dd962b748bdb4f96fc5e6e69dc66522924f489;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 7d94eabaff81..adfbe81693a6 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -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);