svn commit: r346028 - head/sys/dev/usb/net
Ganbold Tsagaankhuu
ganbold at FreeBSD.org
Tue Sep 3 14:07:00 UTC 2019
Author: ganbold
Date: Mon Apr 8 13:40:46 2019
New Revision: 346028
URL: https://svnweb.freebsd.org/changeset/base/346028
Log:
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.
Modified:
head/sys/dev/usb/net/if_urereg.h
Modified: head/sys/dev/usb/net/if_urereg.h
==============================================================================
--- head/sys/dev/usb/net/if_urereg.h Mon Apr 8 11:54:45 2019 (r346027)
+++ head/sys/dev/usb/net/if_urereg.h Mon Apr 8 13:40:46 2019 (r346028)
@@ -176,7 +176,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
More information about the svn-src-all
mailing list