summaryrefslogtreecommitdiff
path: root/nuttx/arch
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-01 23:12:17 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-01 23:12:17 +0000
commit46a632eaa001d0e40e2bccfc4d396c3abb99c117 (patch)
tree6c12bb8768e193fba93d510c2dc0e13910472abf /nuttx/arch
parentd42a467b1575de8d3f7828547aa350db6d0a1062 (diff)
downloadpx4-nuttx-46a632eaa001d0e40e2bccfc4d396c3abb99c117.tar.gz
px4-nuttx-46a632eaa001d0e40e2bccfc4d396c3abb99c117.tar.bz2
px4-nuttx-46a632eaa001d0e40e2bccfc4d396c3abb99c117.zip
Fix PHY address search; NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4796 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch')
-rw-r--r--nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c b/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c
index 40db51f80..30860edfa 100644
--- a/nuttx/arch/mips/src/pic32mx/pic32mx-ethernet.c
+++ b/nuttx/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;
}