Subject: CVS commit: src/sys/dev/mii
To: None <source-changes@NetBSD.org>
From: Allen Briggs <briggs@netbsd.org>
List: source-changes
Date: 11/02/2003 01:42:28
Module Name:	src
Committed By:	briggs
Date:		Sun Nov  2 01:42:28 UTC 2003

Modified Files:
	src/sys/dev/mii: nsphy.c

Log Message:
Implement a separate nsphy_reset().  There are two reasons for this:

	1) This PHY can take an inordinate amount of time to reset if
	   media is attached.  Under fairly normal circumstances, up
	   to near one second.  This is because it appears to go through
	   an implicit autonegotiation cycle as part of the reset.

	2) During reset and autonegotiation, the BMCR will clear the reset
	   bit before the process is complete.  It will return 0 until the
	   process is complete and it's safe to access the PHY again.

This gets the on-board pcnet + nsphy ethernet working properly for me on
an IBM PC Server/325.  Fixes PR/16346.


To generate a diff of this commit:
cvs rdiff -r1.39 -r1.40 src/sys/dev/mii/nsphy.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.