commit | 9fba1c31f4f3f9f860a4afee0b409cde27d06741 | [log] [tgz] |
---|---|---|
author | Florian Fainelli <florian@openwrt.org> | Sun Mar 07 00:55:47 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sun Mar 07 15:25:53 2010 -0800 |
tree | a60e05c46412926d2d23f027f3689fdd109c75af | |
parent | 30765d0502905a9248e5de72fc7ac83c23422861 [diff] |
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>