Re: Fix silly thinko in sungem network driver.
From: Benjamin Herrenschmidt
Date: Fri Feb 20 2004 - 19:29:46 EST
> Here it is:
>
> .../...
And here's the version without the typo
(I shall not code before having breakfast...)
--- linux-2.5/drivers/net/sungem.c 2004-02-21 11:10:33.390479384 +1100
+++ linuxppc-2.5-benh/drivers/net/sungem.c 2004-02-21 11:18:23.396027680 +1100
@@ -1837,7 +1837,8 @@
* thresholds (and Apple bug fixes don't exist)
*/
if (!(readl(gp->regs + GREG_CFG) & GREG_CFG_IBURST)) {
- cfg = ((2 << 1) & GREG_CFG_TXDMALIM);
+ cfg &= ~(GREG_CFG_TXDMALIM | GREG_CFG_RXDMALIM);
+ cfg |= ((2 << 1) & GREG_CFG_TXDMALIM);
cfg |= ((8 << 6) & GREG_CFG_RXDMALIM);
writel(cfg, gp->regs + GREG_CFG);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/