net/designware: Program phy registers when auto-negotiation is ON
authorVikas Manocha <vikas.manocha@st.com>
Mon, 26 Mar 2012 00:09:57 +0000 (00:09 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Apr 2012 15:47:34 +0000 (10:47 -0500)
commite25c90b45c4764e60e44f302ad337ed6ce066468
treed09d14341cd82b54471faba6a58e94061a6fa926
parent13edd1706c56371dc6a67f7bef874f6d8b7af8eb
net/designware: Program phy registers when auto-negotiation is ON

If AN(auto-negotiation) is ON, speed bit of control register are not
applicable.  Also phy registers were not getting programmed as per the
result of AN. This patch sets only AN bit & restart AN bit for AN ON
selection & programs PHY registers as per AN result.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Signed-off-by: Amit Virdi <amit.virdi@st.com>
drivers/net/designware.c