Commit 95a08114 authored by Linus Torvalds's avatar Linus Torvalds

Fix silly thinko in sungem network driver.

From David Miller.
parent 0e434c00
...@@ -1836,9 +1836,9 @@ static void gem_init_pause_thresholds(struct gem *gp) ...@@ -1836,9 +1836,9 @@ static void gem_init_pause_thresholds(struct gem *gp)
/* If Infinite Burst didn't stick, then use different /* If Infinite Burst didn't stick, then use different
* thresholds (and Apple bug fixes don't exist) * 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 = ((2 << 1) & GREG_CFG_TXDMALIM);
cfg = ((8 << 6) & GREG_CFG_RXDMALIM); cfg |= ((8 << 6) & GREG_CFG_RXDMALIM);
writel(cfg, gp->regs + GREG_CFG); writel(cfg, gp->regs + GREG_CFG);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment