stmmac: don't go through ethtool to start auto-negotiation
authorDavid Decotigny <decot@google.com>
Thu, 12 May 2011 20:28:04 +0000 (20:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2011 20:12:07 +0000 (16:12 -0400)
commit1334cb60826377de8f75adb9902c25302222f4fe
tree8e4e206a62b19ed2aa0f9c3a1e2370a46f6b1c7f
parent5310cbce900094dce5df4a671b411e15319a75d4
stmmac: don't go through ethtool to start auto-negotiation

The driver used to call phy's ethtool configuration routine to start
auto-negotiation. This change has it call directly phy's routine to
start auto-negotiation.

The initial version was hiding phy_start_aneg() return value,
this patch returns it (<0 upon error).

Tested: module compiles, tested on STM HDK7108 STB.

Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/stmmac/stmmac_ethtool.c