summaryrefslogtreecommitdiff
path: root/drivers/net/sky2.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-05-24 22:22:45 (GMT)
committerJeff Garzik <jeff@garzik.org>2007-05-30 13:52:48 (GMT)
commit34dd962b748bdb4f96fc5e6e69dc66522924f489 (patch)
tree4cbe503e536455fcff5f4fd6fe44e59f8a92b65a /drivers/net/sky2.c
parent56069c0fdd3a4db5769df30c9700cd3bc002fc48 (diff)
downloadlinux-fsl-qoriq-34dd962b748bdb4f96fc5e6e69dc66522924f489.tar.xz
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>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r--drivers/net/sky2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 7d94eab..adfbe81 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);