[openfirmware] [commit] r2954 - dev/usb2/device/net

repository service svn at openfirmware.info
Thu Apr 26 01:40:14 CEST 2012


Author: wmb
Date: Thu Apr 26 01:40:13 2012
New Revision: 2954
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/2954

Log:
ASIX USB-LAN driver - fixed error in the previous change to this driver.  The problem was that only the first open would work, since the phy init code was in a function that is only called after a reset of the USB port.

Modified:
   dev/usb2/device/net/ax8817x.fth

Modified: dev/usb2/device/net/ax8817x.fth
==============================================================================
--- dev/usb2/device/net/ax8817x.fth	Wed Apr 25 06:53:43 2012	(r2953)
+++ dev/usb2/device/net/ax8817x.fth	Thu Apr 26 01:40:13 2012	(r2954)
@@ -241,6 +241,8 @@
 ;
 
 : ax-start-phy  ( -- )
+   select-phy
+   ax-init-mii
    ax-auto-neg-wait
 ;
 : ax-promiscuous  ( -- )  rx-ctl@  1 or  rx-ctl!  ;
@@ -295,11 +297,9 @@
 
    ax-toggle-gpio
    ax-get-phyid
-   select-phy
    ax-stop-mac
    ax-get-mac-address  2drop
    ax-set-ipg
-   ax-init-mii
 ;
 
 : ax-loopback{  ( -- )



More information about the openfirmware mailing list