jme: Clear all modified GHC register flags
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Fri, 27 Feb 2009 17:58:16 +0000 (17:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Mar 2009 04:39:32 +0000 (20:39 -0800)
Clear all modified GHC register flags.

Fixed-by: Ethan Hsiao <ethanhsiao@jmicron.com>
Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c

index f65a09c363edf44975c4a737d058f3cf9eb888fe..47dd47fd0ace99fbfdda8b6264fa6c76567ce9d7 100644 (file)
@@ -429,10 +429,9 @@ jme_check_link(struct net_device *netdev, int testonly)
 
                jme->phylink = phylink;
 
-               ghc = jme->reg_ghc & ~(GHC_SPEED_10M |
-                                       GHC_SPEED_100M |
-                                       GHC_SPEED_1000M |
-                                       GHC_DPX);
+               ghc = jme->reg_ghc & ~(GHC_SPEED | GHC_DPX |
+                               GHC_TO_CLK_PCIE | GHC_TXMAC_CLK_PCIE |
+                               GHC_TO_CLK_GPHY | GHC_TXMAC_CLK_GPHY);
                switch (phylink & PHY_LINK_SPEED_MASK) {
                case PHY_LINK_SPEED_10M:
                        ghc |= GHC_SPEED_10M |