Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:06:33 -0000
From:      Ganbold Tsagaankhuu <ganbold@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346028 - head/sys/dev/usb/net
Message-ID:  <201904081340.x38Dek7M000710@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904081340.x38Dek7M000710>