Subject: Re: CVS commit: syssrc/sys/dev/ic
To: Charles M. Hannum <mycroft@netbsd.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-net
Date: 05/02/2002 23:02:10
On Fri, May 03, 2002 at 08:41:48AM +0300, Charles M. Hannum wrote:

 > 3) Do not clear auto-negotiation mode; otherwise the chip will not
 >    renegotiate on a link failure.
 > 
 > With these changes, 10/100 selection is more stable, and auto-negotiation
 > comes up with the right status and detects link, but the link does not work
 > unless it's hardwired.  More work is needed.

Right, I think you have to *clear* the auto-negotiate mode and set the
media to what the NWAY cycle resulted in.  You restart on link failure
by taking an interrupt when the link goes away (the link status should
come in on one of the GPIO pins).

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>