Patchwork [U-Boot,V2,RESEND,14/24] SPEAr: Enable autoneg for ethernet

login
register
mail settings
Submitter Amit Virdi
Date May 7, 2012, 7:36 a.m.
Message ID <cd49fd6aca1d407adcded1eeecb4acbaaff61e36.1336376035.git.amit.virdi@st.com>
Download mbox | patch
Permalink /patch/157258/
State Accepted
Delegated to: Stefan Roese
Headers show

Comments

Amit Virdi - May 7, 2012, 7:36 a.m.
From: Shiraz Hashim <shiraz.hashim@st.com>

Enabling autoneg avoids situation on few phys with fixed configuration. For
example, in one situation, nfs boot timed out when phy configuration is 100Mbps.
In another situtation, when traffic is directed to SPEAr, either thru
cross-cable or thru switch, the TFTP or DHCP command in u-boot starts to timeout
very often.

When Autoneg is ON, same phys started working perfectly.

Reported-by: Deepak Sikri <deepak.sikri@st.com>
Reported-by: Armando Visconti <armando.visconti@st.com>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
---
 include/configs/spear-common.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h
index 41e7992..8416bbc 100644
--- a/include/configs/spear-common.h
+++ b/include/configs/spear-common.h
@@ -37,6 +37,7 @@ 
 #define CONFIG_DW0_PHY				1
 #define CONFIG_NET_MULTI
 #define CONFIG_PHY_RESET_DELAY			10000		/* in usec */
+#define CONFIG_DW_AUTONEG
 
 /* USBD driver configuration */
 #if defined(CONFIG_SPEAR_USBTTY)