phy: fix phy_id detection also for broken hardware.
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>
Fri, 21 Nov 2008 04:43:18 +0000 (20:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Nov 2008 04:43:18 +0000 (20:43 -0800)
commit6436cbcd735a11fc93bf3353c68914bc545e6d1e
tree94aa2423de352bdabeb0b6f35d27fc6eb8bf422d
parent75e07fc3d87ba9b3255e1fcd735186a533ea0754
phy: fix phy_id detection also for broken hardware.

This patch fixes the case when the phy_ids is mostly Fs and in some case 0x0
due to broken hardware.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c