From: Auke Kok Date: Tue, 27 Jun 2006 16:06:24 +0000 (-0700) Subject: e1000: fix loopback ethtool test X-Git-Tag: upstream/snapshot3+hdmi~39059^2~1^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=acfbc9fde2ec7f304398f6ad7644002e07bf84bc;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git e1000: fix loopback ethtool test Ethtool was reporting that loopback failed randomly on esb2 systems. Upon study it was found that the phy manual was changed with respect to the loopback mode bits. The new value fixes it. Signed-off-by: Jesse Brandeburg Signed-off-by: Auke Kok --- diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c index 6ed7f59..845d293 100644 --- a/drivers/net/e1000/e1000_ethtool.c +++ b/drivers/net/e1000/e1000_ethtool.c @@ -1246,7 +1246,7 @@ e1000_integrated_phy_loopback(struct e1000_adapter *adapter) } else if (adapter->hw.phy_type == e1000_phy_gg82563) { e1000_write_phy_reg(&adapter->hw, GG82563_PHY_KMRN_MODE_CTRL, - 0x1CE); + 0x1CC); } /* force 1000, set loopback */ e1000_write_phy_reg(&adapter->hw, PHY_CTRL, 0x4140);