From: Guennadi Liakhovetski Date: Sat, 11 Oct 2008 22:07:16 +0000 (-0700) Subject: smc911x: Fix external PHY detection X-Git-Tag: v2.6.28-rc1~707^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f3073ac76755abd63b1d4c3d145f4c15b65b5355;p=linux-2.6-omap-h63xx.git smc911x: Fix external PHY detection If an external PHY is found the driver falls through to the default case in the switch and overwrites the PHY ID. Add the missing break. Signed-off-by: Guennadi Liakhovetski Signed-off-by: David S. Miller --- diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index 02cc064c2c8..3d19d00e8ee 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -722,6 +722,9 @@ static void smc911x_phy_detect(struct net_device *dev) break; } } + if (phyaddr < 32) + /* Found an external PHY */ + break; } default: /* Internal media only */