mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
LPC17 Ethernet: Needs to correctly ignore PHYID2 revision number when comparing PHY IDs.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user