LPC17 Ethernet: Needs to correctly ignore PHYID2 revision number when comparing PHY IDs.

This commit is contained in:
Gregory Nutt
2016-06-18 08:51:38 -06:00
parent 0bc40ee8e1
commit f5dc81fe73
+1 -1
View File
@@ -2660,7 +2660,7 @@ static inline int lpc17_phyinit(struct lpc17_driver_s *priv)
* 4-bit revision number).
*/
if ((phyreg & 0xfff0) == LPC17_PHYID2)
if ((phyreg & 0xfff0) == (LPC17_PHYID2 & 0xfff0))
{
break;
}