From c6788bd806726e8a761241dca53afae56ccf1981 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 1 Jun 2012 23:12:17 +0000 Subject: [PATCH] Fix PHY address search; NFS update git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4796 42af7a65-404d-4744-a932-0658087f49c3 --- arch/mips/src/pic32mx/pic32mx-ethernet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/src/pic32mx/pic32mx-ethernet.c b/arch/mips/src/pic32mx/pic32mx-ethernet.c index 40db51f80c..30860edfa5 100644 --- a/arch/mips/src/pic32mx/pic32mx-ethernet.c +++ b/arch/mips/src/pic32mx/pic32mx-ethernet.c @@ -2676,7 +2676,7 @@ static inline int pic32mx_phyinit(struct pic32mx_driver_s *priv) * latches different at different addresses. */ - for (phyaddr = 1; phyaddr < 32; phyaddr++) + for (phyaddr = 0; phyaddr < 32; phyaddr++) { /* Clear any ongoing PHY command bits */ @@ -2687,7 +2687,7 @@ static inline int pic32mx_phyinit(struct pic32mx_driver_s *priv) ret = pic32mx_phyreset(phyaddr); if (ret < 0) { - ndbg("Failed to reset PHY at address %d\n"); + ndbg("Failed to reset PHY at address %d\n", phyaddr); continue; }