kern/163240: Power down PHY when "none" media is selected

Stefan Bethke stb at lassitu.de
Tue Dec 13 09:40:10 UTC 2011


>Number:         163240
>Category:       kern
>Synopsis:       Power down PHY when "none" media is selected
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 13 09:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Stefan Bethke
>Release:        -current r228399
>Organization:
>Environment:
>Description:
Per discussion on -net, it would be advantageous to power down a PHY when not in use, so that no link is established to the remote end of the cable.

The patch adds the power-down bit to the bits to be set for the "none" media selection to the common PHY code, enabling powering down the PHY for the following PHY drivers:
 ac am ax bmt ics lxt ml nsg ns pna qs rdc rl smc tdk tl true uk

>How-To-Repeat:

>Fix:
Index: sys/dev/mii/mii_physubr.c
===================================================================
--- sys/dev/mii/mii_physubr.c	(revision 228402)
+++ sys/dev/mii/mii_physubr.c	(working copy)
@@ -58,7 +58,7 @@
  */
 static const struct mii_media mii_media_table[MII_NMEDIA] = {
 	/* None */
-	{ BMCR_ISO,		ANAR_CSMA,
+	{ BMCR_ISO | BMCR_PDOWN,	ANAR_CSMA,
 	  0, },
 
 	/* 10baseT */


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list