Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2011 09:37:56 GMT
From:      Stefan Bethke <stb@lassitu.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/163240: Power down PHY when "none" media is selected
Message-ID:  <201112130937.pBD9buJF057451@red.freebsd.org>
Resent-Message-ID: <201112130940.pBD9e9W5020858@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112130937.pBD9buJF057451>