]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
PC EMAC driver add PHY ID search forgotten in the last commit.
authorPavel Pisa <ppisa@pikron.com>
Tue, 16 Feb 2016 23:20:40 +0000 (00:20 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 27 Jul 2016 18:55:44 +0000 (20:55 +0200)
Signed-off-by: Pavel Pisa <ppisa@pikron.com>
ports/driver/lpc_emac/lpc17xx_netif.c

index a8ebd2a105938cc8e1042a7f26eac0a3324033c5..3c9e827d9f16a4b268edaeb06b17c799efe37d31 100644 (file)
@@ -342,6 +342,11 @@ static int low_level_init(struct netif *netif)
     phyid = (id1 << 16) | id2;
   }
 
+  for (phydes = lpc_emac_know_phy; phydes->phyid; phydes++) {
+    if (!((phydes->phyid ^ phyid) & ~phydes->maskoutid))
+      break;
+  }
+
   if (phydes->phyid) {
     do {