Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic RTK_CFG2_BUSFREQ is only 1 byte. Fixes panic on ...



details:   https://anonhg.NetBSD.org/src/rev/74112d57af8f
branches:  trunk
changeset: 998041:74112d57af8f
user:      uwe <uwe%NetBSD.org@localhost>
date:      Fri Apr 05 23:44:59 2019 +0000

description:
RTK_CFG2_BUSFREQ is only 1 byte.  Fixes panic on landisk.

diffstat:

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

diffs (27 lines):

diff -r fb7a52c0cc94 -r 74112d57af8f sys/dev/ic/rtl8169.c
--- a/sys/dev/ic/rtl8169.c      Fri Apr 05 23:41:58 2019 +0000
+++ b/sys/dev/ic/rtl8169.c      Fri Apr 05 23:44:59 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtl8169.c,v 1.157 2019/01/22 03:42:26 msaitoh Exp $    */
+/*     $NetBSD: rtl8169.c,v 1.158 2019/04/05 23:44:59 uwe Exp $        */
 
 /*
  * Copyright (c) 1997, 1998-2003
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.157 2019/01/22 03:42:26 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtl8169.c,v 1.158 2019/04/05 23:44:59 uwe Exp $");
 /* $FreeBSD: /repoman/r/ncvs/src/sys/dev/re/if_re.c,v 1.20 2004/04/11 20:34:08 ru Exp $ */
 
 /*
@@ -1959,7 +1959,7 @@
        } else if ((sc->sc_quirk & RTKQ_PCIE) != 0) {
                period = 8;
        } else {
-               switch (CSR_READ_4(sc, RTK_CFG2_BUSFREQ) & 0x7) {
+               switch (CSR_READ_1(sc, RTK_CFG2_BUSFREQ) & 0x7) {
                case RTK_BUSFREQ_33MHZ:
                        period = 30;
                        break;



Home | Main Index | Thread Index | Old Index