From 13edd1706c56371dc6a67f7bef874f6d8b7af8eb Mon Sep 17 00:00:00 2001 From: Vipin Kumar Date: Mon, 26 Mar 2012 00:09:56 +0000 Subject: net/designware: Try configuring phy on each dw_eth_init Phy autonegotiation works only when the ethernet cable is plugged in. Since the phy was configured only at the init time, a plugged in cable was necessary to initialize the phy properly. This patch keeps a flag to check if the phy initialization has succeeded, and calls configure_phy routine at every init if this flag reports otherwise. Signed-off-by: Vipin Kumar Signed-off-by: Amit Virdi --- drivers/net/designware.h | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/net/designware.h') diff --git a/drivers/net/designware.h b/drivers/net/designware.h index 42133b3310..abf729d57d 100644 --- a/drivers/net/designware.h +++ b/drivers/net/designware.h @@ -238,6 +238,7 @@ struct dw_eth_dev { u32 duplex; u32 tx_currdescnum; u32 rx_currdescnum; + u32 phy_configured; u32 padding; struct dmamacdescr tx_mac_descrtable[CONFIG_TX_DESCR_NUM]; -- cgit v1.2.3