mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
tsec: Fix PHY code to match first driver
Jarrold Wen noticed that the generic PHY code always matches under the current implementation. Change it so the first match wins, and *only* unknown PHYs trigger the generic driver Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
ccc091aac6
commit
2a3cee43c3
1 changed files with 3 additions and 1 deletions
|
|
@ -1353,8 +1353,10 @@ struct phy_info *get_phy_info(struct eth_device *dev)
|
|||
/* loop through all the known PHY types, and find one that */
|
||||
/* matches the ID we read from the PHY. */
|
||||
for (i = 0; phy_info[i]; i++) {
|
||||
if (phy_info[i]->id == (phy_ID >> phy_info[i]->shift))
|
||||
if (phy_info[i]->id == (phy_ID >> phy_info[i]->shift)) {
|
||||
theInfo = phy_info[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (theInfo == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue