Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Apply FreeBSD r346028 from ganbold@f.o:



details:   https://anonhg.NetBSD.org/src/rev/2ec65bef192f
branches:  trunk
changeset: 455763:2ec65bef192f
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Apr 12 03:32:06 2019 +0000

description:
Apply FreeBSD r346028 from ganbold@f.o:

 > Fix URE_WDT6_SET_MODE value in the register definition.
 > Both linux and u-boot sources for RTL8152 driver has this value.
 > RTL8152 USB ethernet is used in NanoPI R1 board as second ethernet.
 > This fixes for me RTL8152 USB ethernet not detected problem after
 > reboot on NanoPI R1 board.
 >
 > Both NetBSD and OpenBSD have a wrong value so far.

diffstat:

 sys/dev/usb/if_urereg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1a93bedb28e9 -r 2ec65bef192f sys/dev/usb/if_urereg.h
--- a/sys/dev/usb/if_urereg.h   Fri Apr 12 03:29:24 2019 +0000
+++ b/sys/dev/usb/if_urereg.h   Fri Apr 12 03:32:06 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_urereg.h,v 1.1 2019/02/06 11:55:06 rin Exp $        */
+/*     $NetBSD: if_urereg.h,v 1.2 2019/04/12 03:32:06 msaitoh Exp $    */
 /*     $OpenBSD: if_urereg.h,v 1.5 2018/11/02 21:32:30 jcs Exp $       */
 /*-
  * Copyright (c) 2015-2016 Kevin Lo <kevlo%FreeBSD.org@localhost>
@@ -178,7 +178,7 @@
 #define        URE_EEEP_CR_EEEP_TX     0x0002
 
 /* PLA_WDT6_CTRL */
-#define        URE_WDT6_SET_MODE       0x001
+#define        URE_WDT6_SET_MODE       0x0010
 
 /* PLA_TCR0 */
 #define        URE_TCR0_TX_EMPTY       0x0800



Home | Main Index | Thread Index | Old Index