From f5dc81fe7318e1c2b50d744b35c4c851196de57d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 18 Jun 2016 08:51:38 -0600 Subject: [PATCH] LPC17 Ethernet: Needs to correctly ignore PHYID2 revision number when comparing PHY IDs. --- arch/arm/src/lpc17xx/lpc17_ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/lpc17xx/lpc17_ethernet.c b/arch/arm/src/lpc17xx/lpc17_ethernet.c index d3f884b9761..8f8d2bd524e 100644 --- a/arch/arm/src/lpc17xx/lpc17_ethernet.c +++ b/arch/arm/src/lpc17xx/lpc17_ethernet.c @@ -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; }