]> git.hungrycats.org Git - linux/commitdiff
Fix silly thinko in sungem network driver.
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 20 Feb 2004 06:29:11 +0000 (22:29 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 20 Feb 2004 06:29:11 +0000 (22:29 -0800)
From David Miller.

drivers/net/sungem.c

index 102bc85eb3581166a4c55c7fdccf87fde20fc32e..2ea91e46f840a62f03f28c911d8261916209e144 100644 (file)
@@ -1836,9 +1836,9 @@ static void gem_init_pause_thresholds(struct gem *gp)
        /* If Infinite Burst didn't stick, then use different
         * thresholds (and Apple bug fixes don't exist)
         */
-       if (readl(gp->regs + GREG_CFG) & GREG_CFG_IBURST) {
+       if (!(readl(gp->regs + GREG_CFG) & GREG_CFG_IBURST)) {
                cfg = ((2 << 1) & GREG_CFG_TXDMALIM);
-               cfg = ((8 << 6) & GREG_CFG_RXDMALIM);
+               cfg |= ((8 << 6) & GREG_CFG_RXDMALIM);
                writel(cfg, gp->regs + GREG_CFG);
        }       
 }