提交 f3073ac7 编写于 作者: G Guennadi Liakhovetski 提交者: David S. Miller

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: NGuennadi Liakhovetski <lg@denx.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 20501a69
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册