Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/sys/arch/arm/ep93xx Pull up following revision(s) (reques...
details: https://anonhg.NetBSD.org/src/rev/abc5dfdf0ce2
branches: netbsd-3
changeset: 577400:abc5dfdf0ce2
user: riz <riz%NetBSD.org@localhost>
date: Fri Oct 21 18:57:57 2005 +0000
description:
Pull up following revision(s) (requested by hamajima in ticket #904):
sys/arch/arm/ep93xx/epe.c: revision 1.3
Fix write sequence to PHY.
I write a data first, but I wrote a command first.
diffstat:
sys/arch/arm/ep93xx/epe.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 731933b25e45 -r abc5dfdf0ce2 sys/arch/arm/ep93xx/epe.c
--- a/sys/arch/arm/ep93xx/epe.c Fri Oct 21 18:55:52 2005 +0000
+++ b/sys/arch/arm/ep93xx/epe.c Fri Oct 21 18:57:57 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: epe.c,v 1.2 2005/01/17 02:32:29 joff Exp $ */
+/* $NetBSD: epe.c,v 1.2.8.1 2005/10/21 18:57:57 riz Exp $ */
/*
* Copyright (c) 2004 Jesse Off
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.2 2005/01/17 02:32:29 joff Exp $");
+__KERNEL_RCSID(0, "$NetBSD: epe.c,v 1.2.8.1 2005/10/21 18:57:57 riz Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -500,8 +500,8 @@
sc = (struct epe_softc *)self;
d = EPE_READ(SelfCtl);
EPE_WRITE(SelfCtl, d & ~SelfCtl_PSPRS); /* no preamble suppress */
+ EPE_WRITE(MIIData, val);
EPE_WRITE(MIICmd, (MIICmd_WRITE | (phy << 5) | reg));
- EPE_WRITE(MIIData, val);
while(EPE_READ(MIISts) & MIISts_BUSY);
EPE_WRITE(SelfCtl, d); /* restore old value */
}
Home |
Main Index |
Thread Index |
Old Index