Module Name: src
Committed By: msaitoh
Date: Fri Apr 12 03:32:06 UTC 2019
Modified Files:
src/sys/dev/usb: if_urereg.h
Log Message:
Apply FreeBSD r346028 from [email protected]:
> 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.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/usb/if_urereg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/if_urereg.h
diff -u src/sys/dev/usb/if_urereg.h:1.1 src/sys/dev/usb/if_urereg.h:1.2
--- src/sys/dev/usb/if_urereg.h:1.1 Wed Feb 6 11:55:06 2019
+++ src/sys/dev/usb/if_urereg.h Fri Apr 12 03:32:06 2019
@@ -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 <[email protected]>
@@ -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