diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-19 22:29:11 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-19 22:29:11 -0800 |
| commit | 95a0811445da78d527e87e826d7ef27c98e25d2e (patch) | |
| tree | d23209e60a2f82969be382ea7b06c5197dbe75a7 | |
| parent | 0e434c00f2cbf15aeba534f461942d81ce16c39e (diff) | |
Fix silly thinko in sungem network driver.
From David Miller.
| -rw-r--r-- | drivers/net/sungem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c index 102bc85eb358..2ea91e46f840 100644 --- a/drivers/net/sungem.c +++ b/drivers/net/sungem.c @@ -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); } } |
