]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
stmmac: mdio register has to fail if the phy is not found
authorGiuseppe CAVALLARO <peppe.cavallaro@st.com>
Wed, 6 Feb 2013 20:47:52 +0000 (20:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Feb 2013 01:12:10 +0000 (20:12 -0500)
commit3955b22b9798ae8694ac053614694695991f0a91
treea46217f7ea13c2fcb4f9506a91663aadbbc4cb40
parentde53d55798f44c6c95442ab839004b7272ab61dd
stmmac: mdio register has to fail if the phy is not found

With this patch the stmmac fails in case of the phy device
is not found; w/o this fix the mdio can be register twice when
do down/up the iface and this is not correct.

Reported-by: Stas <stsp@list.ru>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c