Skip to content

Commit

Permalink
jme: Clear all modified GHC register flags
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guo-Fu Tseng authored and David S. Miller committed Mar 2, 2009
1 parent 7f7fd2d commit eb352b8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/net/jme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down

0 comments on commit eb352b8

Please sign in to comment.