|
@@ -320,11 +320,8 @@ static void dwmac1000_set_eee_timer(void __iomem *ioaddr, int ls, int tw)
|
|
|
|
|
|
|
|
static void dwmac1000_ctrl_ane(void __iomem *ioaddr, bool restart)
|
|
static void dwmac1000_ctrl_ane(void __iomem *ioaddr, bool restart)
|
|
|
{
|
|
{
|
|
|
- u32 value;
|
|
|
|
|
-
|
|
|
|
|
- value = readl(ioaddr + GMAC_AN_CTRL);
|
|
|
|
|
/* auto negotiation enable and External Loopback enable */
|
|
/* auto negotiation enable and External Loopback enable */
|
|
|
- value = GMAC_AN_CTRL_ANE | GMAC_AN_CTRL_ELE;
|
|
|
|
|
|
|
+ u32 value = GMAC_AN_CTRL_ANE | GMAC_AN_CTRL_ELE;
|
|
|
|
|
|
|
|
if (restart)
|
|
if (restart)
|
|
|
value |= GMAC_AN_CTRL_RAN;
|
|
value |= GMAC_AN_CTRL_RAN;
|