[Zrouter-src-freebsd] [rt2860-in-ral] push by r... at ddteam.net - Cards that use EFUSE (MAC rev >= 0x3071) use word address.... on 2012-03-21 19:37 GMT

rt2860-in-ral at googlecode.com rt2860-in-ral at googlecode.com
Wed Mar 21 19:38:00 UTC 2012


Revision: 9ceb3b51454a
Author:   Aleksandr Rybalko <ray at ddteam.net>
Date:     Wed Mar 21 12:37:51 2012
Log:      Cards that use EFUSE (MAC rev >= 0x3071) use word address.
Tested by:	Sergey V. Dyatko
http://code.google.com/p/rt2860-in-ral/source/detail?r=9ceb3b51454a

Modified:
  /sys/dev/ral/rt2860.c

=======================================
--- /sys/dev/ral/rt2860.c	Wed Mar 21 08:51:39 2012
+++ /sys/dev/ral/rt2860.c	Wed Mar 21 12:37:51 2012
@@ -7028,8 +7028,7 @@
  	} else if ((sc->mac_rev & 0xffff0000) >= 0x30710000) {
  		tmp = RAL_READ(sc, RT3070_EFUSE_CTRL);
  		if (tmp & RT3070_SEL_EFUSE)
-			/* XXX: "byteaddr" here, should be checked */
-			return (rt3090_efuse_read_2(sc, byteaddr));
+			return (rt3090_efuse_read_2(sc, addr));
  	}

  	/* clock C once before the first command */


More information about the Zrouter-src-freebsd mailing list