via-velocity: Fix FLOW_CNTL_TX_RX handling in set_mii_flow_control()
authorDavid S. Miller <davem@davemloft.net>
Tue, 23 Mar 2010 02:59:47 +0000 (19:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Mar 2010 18:56:32 +0000 (11:56 -0700)
Clear, don't set, ANAR_ASMDIR in this case.

Noticed by Roel Kluin.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/via-velocity.c

index 3a486f3bad3ddd6477c0fa15102e47c668ea3566..bc278d4ee89debb359c4d70ef21e06bfd7479ae3 100644 (file)
@@ -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: