Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Disable LPLU when the device is WM_T_PCH_LPT ser...



details:   https://anonhg.NetBSD.org/src/rev/b407f39a5b26
branches:  trunk
changeset: 787332:b407f39a5b26
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 11 14:39:35 2013 +0000

description:
Disable LPLU when the device is WM_T_PCH_LPT series (I21[78]).
This change fixes a bug that wm interface don't negotiate to 1000BaseT.

diffstat:

 sys/dev/pci/if_wm.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 1954461f46a1 -r b407f39a5b26 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Tue Jun 11 14:39:07 2013 +0000
+++ b/sys/dev/pci/if_wm.c       Tue Jun 11 14:39:35 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.254 2013/06/11 10:07:09 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.255 2013/06/11 14:39:35 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.254 2013/06/11 10:07:09 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.255 2013/06/11 14:39:35 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -6342,7 +6342,8 @@
                 */
 
                /* Configure the LCD with the OEM bits in NVM */
-               if ((sc->sc_type == WM_T_PCH) || (sc->sc_type == WM_T_PCH2)) {
+               if ((sc->sc_type == WM_T_PCH) || (sc->sc_type == WM_T_PCH2)
+                   || (sc->sc_type == WM_T_PCH_LPT)) {
                        /*
                         * Disable LPLU.
                         * XXX It seems that 82567 has LPLU, too.



Home | Main Index | Thread Index | Old Index