From: David S. Miller Date: Tue, 23 Mar 2010 02:59:47 +0000 (-0700) Subject: via-velocity: Fix FLOW_CNTL_TX_RX handling in set_mii_flow_control() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcbe53682f65330bdd9ad7eed9575d2ff536353a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git via-velocity: Fix FLOW_CNTL_TX_RX handling in set_mii_flow_control() Clear, don't set, ANAR_ASMDIR in this case. Noticed by Roel Kluin. Signed-off-by: David S. Miller --- diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c index 3a486f3bad3d..bc278d4ee89d 100644 --- a/drivers/net/via-velocity.c +++ b/drivers/net/via-velocity.c @@ -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: