<br /><br /><span>Am 01.07.21 21:57 schrieb <b class="name">Gary Mills </b> <gary_mills@fastmail.fm>:</span><blockquote cite="mid:YN4eMPyGMPGF9Nac@imap.fastmail.com" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimetype-text-plain">On Thu, Jul 01, 2021 at 06:27:55PM +0200, Carsten Grzemba via oi-dev wrote:<br />> <br />>    I use the atge driver on my laptop with AR8151V2 chip. There I have the<br />>    problem if the cable disconnects 10 sec later I get a L1C error and as<br />>    a result it seems that the upper layer assumes that the link is up with<br />>    10MB half duplex.<br />[...]<br />>    But it seems there is very less similarity of the illumos driver with<br />>    the BSD or Linux driver.<br />> <br />>    So I am wondering which source was the blue print for the Illumos atge<br />>    driver?<br /><br />I started with the Freebsd alc driver, and wound up with a new version<br />of the illumos atge driver.  This was in 2010.  Much has changed since<br />then.  At the time, I tested the AR8132 on my ASUS laptop.  Masayuki<br />Murayama tested the AR8131 on his laptop.  This was my first driver.<br />I had a great deal of help from other people.  There was one report in<br />2012 of a driver failure with AR8151 v2.0 hardware.<br /><br /><br />-- <br />-Gary Mills-              -refurb-                -Winnipeg, Manitoba, Canada-</div></blockquote><span><br /></span><div><span>It seems the fix is simple:</span></div><div><span><br /></span></div><div><span>--- a/usr/src/uts/common/io/atge/atge_main.c<br />+++ b/usr/src/uts/common/io/atge/atge_main.c<br />@@ -256,7 +256,7 @@ static      mii_ops_t atge_l1c_mii_ops = {<br />        atge_l1c_mii_read,<br />        atge_l1c_mii_write,<br />        atge_mii_notify,<br />-       NULL<br />+       atge_l1c_mii_reset<br /> };<br /> <br />the function </span><span><span>atge_l1c_mii_reset exist already but is not registered  in the mii_ops table.</span></span></div><div><span><span>With this the "atge0: L1C chip detected a fatal error, interrupt status: 2200" did not occur again on cable disconnect.</span></span></div><div><span><span>The interface is working if the cable is connected again.<br /></span></span></div><div><span></span></div>-- <br signature="separator" />Carsten<br />