Brad reminded me about the importance of commenting on the
design of the mlphy(4) which is different from other PHYs.

It's from FreeBSD, no functional change introduced.

Index: src/sys/dev/mii/mlphy.c
===================================================================
RCS file: /cvs/src/sys/dev/mii/mlphy.c,v
retrieving revision 1.1
diff -u -p -r1.1 mlphy.c
--- src/sys/dev/mii/mlphy.c     28 Mar 2011 15:21:38 -0000      1.1
+++ src/sys/dev/mii/mlphy.c     10 Oct 2011 04:01:52 -0000
@@ -89,6 +89,18 @@
 
 /*
  * Micro Linear 6692 PHY
+ *
+ * The Micro Linear 6692 is a strange beast, and dealing with it using
+ * this code framework is tricky. The 6692 is actually a 100Mbps-only
+ * device, which means that a second PHY is required to support 10Mbps
+ * modes. However, even though the 6692 does not support 10Mbps modes,
+ * it can still advertise them when performing autonegotiation. If a
+ * 10Mbps mode is negotiated, we must program the registers of the
+ * companion PHY accordingly in addition to programming the registers
+ * of the 6692.
+ *
+ * This device also does not have vendor/device ID registers.
+ *
  */
 
 #include <sys/param.h>

Reply via email to