Skip to content

Commit

Permalink
via-velocity: Fix FLOW_CNTL_TX_RX handling in set_mii_flow_control()
Browse files Browse the repository at this point in the history
Clear, don't set, ANAR_ASMDIR in this case.

Noticed by Roel Kluin.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Mar 25, 2010
1 parent 80bb3a0 commit bcbe536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/via-velocity.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ static void set_mii_flow_control(struct velocity_info *vptr)

case FLOW_CNTL_TX_RX:
MII_REG_BITS_ON(ANAR_PAUSE, MII_REG_ANAR, vptr->mac_regs);
MII_REG_BITS_ON(ANAR_ASMDIR, MII_REG_ANAR, vptr->mac_regs);
MII_REG_BITS_OFF(ANAR_ASMDIR, MII_REG_ANAR, vptr->mac_regs);
break;

case FLOW_CNTL_DISABLE:
Expand Down

0 comments on commit bcbe536

Please sign in to comment.