Fix PHY address search; NFS update

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4796 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-06-01 23:12:17 +00:00
parent 4ee1cd036b
commit c6788bd806
1 changed files with 2 additions and 2 deletions

View File

@ -2676,7 +2676,7 @@ static inline int pic32mx_phyinit(struct pic32mx_driver_s *priv)
* latches different at different addresses. * latches different at different addresses.
*/ */
for (phyaddr = 1; phyaddr < 32; phyaddr++) for (phyaddr = 0; phyaddr < 32; phyaddr++)
{ {
/* Clear any ongoing PHY command bits */ /* Clear any ongoing PHY command bits */
@ -2687,7 +2687,7 @@ static inline int pic32mx_phyinit(struct pic32mx_driver_s *priv)
ret = pic32mx_phyreset(phyaddr); ret = pic32mx_phyreset(phyaddr);
if (ret < 0) if (ret < 0)
{ {
ndbg("Failed to reset PHY at address %d\n"); ndbg("Failed to reset PHY at address %d\n", phyaddr);
continue; continue;
} }