]> git.baikalelectronics.ru Git - kernel.git/commit
cpmac: fallback to switch mode if no PHY chip found
authorFlorian Fainelli <florian@openwrt.org>
Sun, 7 Mar 2010 00:55:47 +0000 (00:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Mar 2010 23:25:53 +0000 (15:25 -0800)
commit38ec940f12e853e32f15ec2b3c262a36f28f22a9
treea60e05c46412926d2d23f027f3689fdd109c75af
parenta71cc86cf8ef18e0e4718b706dbd27fced6a5470
cpmac: fallback to switch mode if no PHY chip found

If we were unable to detect a PHY on any of the MDIO bus id we tried instead of
bailing out with -ENODEV, assume the MAC is connected to a switch and use MDIO
bus 0. This unbreaks quite a lot of devices out there whose switch cannot be
detected.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cpmac.c