From: Florian Fainelli Date: Sat, 7 Nov 2009 12:48:17 +0000 (+0000) Subject: merge upstream fixes on mdio loop X-Git-Tag: reboot~21938 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e9a02ff509c78b74ac820dc407a7b972fd73018d;p=oweals%2Fopenwrt.git merge upstream fixes on mdio loop SVN-Revision: 18335 --- diff --git a/target/linux/brcm63xx/patches-2.6.30/060-bcm63xx_enet_upstream_fixes.patch b/target/linux/brcm63xx/patches-2.6.30/060-bcm63xx_enet_upstream_fixes.patch index 0271aa6c91..e4c8026b36 100644 --- a/target/linux/brcm63xx/patches-2.6.30/060-bcm63xx_enet_upstream_fixes.patch +++ b/target/linux/brcm63xx/patches-2.6.30/060-bcm63xx_enet_upstream_fixes.patch @@ -8,6 +8,15 @@ #include #include "bcm63xx_enet.h" +@@ -91,7 +90,7 @@ + if (enet_readl(priv, ENET_IR_REG) & ENET_IR_MII) + break; + udelay(1); +- } while (limit-- >= 0); ++ } while (limit-- > 0); + + return (limit < 0) ? 1 : 0; + } @@ -321,7 +320,7 @@ if (len < copybreak) { struct sk_buff *nskb;