Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix a bug that WOL didn't work on some chips sin...



details:   https://anonhg.NetBSD.org/src/rev/ee94bd4575f0
branches:  trunk
changeset: 839097:ee94bd4575f0
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Feb 07 04:03:24 2019 +0000

description:
Fix a bug that WOL didn't work on some chips since if_wm.c rev. 1.610.
Set WUC_APME bit older than PCH. Will fixes PR kern/53945 reported by kardel@.
Tested with my own 82574 card.

diffstat:

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

diffs (27 lines):

diff -r d774bbd0965d -r ee94bd4575f0 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Thu Feb 07 03:03:00 2019 +0000
+++ b/sys/dev/pci/if_wm.c       Thu Feb 07 04:03:24 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.624 2019/02/06 07:20:13 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.625 2019/02/07 04:03:24 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.624 2019/02/06 07:20:13 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.625 2019/02/07 04:03:24 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -15028,7 +15028,7 @@
                        goto pme;
        } else {
                /* Enable wakeup by the MAC */
-               CSR_WRITE(sc, WMREG_WUC, WUC_PME_EN);
+               CSR_WRITE(sc, WMREG_WUC, WUC_APME | WUC_PME_EN);
                CSR_WRITE(sc, WMREG_WUFC, WUFC_MAG);
        }
 



Home | Main Index | Thread Index | Old Index