From: Bo Shen Date: Wed, 4 Mar 2015 05:35:16 +0000 (+0800) Subject: Net: macb: reset GBE bit when fallback checking X-Git-Tag: v2015.04-rc5~63^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c83cb5f665c11eb0231bb32c3f1094bb55139024;p=u-boot Net: macb: reset GBE bit when fallback checking If the GBE bit is set, when do next time autonegotiation, if the result is not 1000Mbps, it will fallback to 100Mbps checking. So, we need to clear the GBE bit. Signed-off-by: Bo Shen --- diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 9c2ff487a7..170ff0646f 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -515,7 +515,7 @@ static int macb_phy_init(struct macb_device *macb) lpa); ncfgr = macb_readl(macb, NCFGR); - ncfgr &= ~(MACB_BIT(SPD) | MACB_BIT(FD)); + ncfgr &= ~(MACB_BIT(SPD) | MACB_BIT(FD) | GEM_BIT(GBE)); if (speed) ncfgr |= MACB_BIT(SPD); if (duplex)