svn commit: r365738 - stable/11/sys/dev/usb/net

John-Mark Gurney jmg at FreeBSD.org
Tue Sep 15 00:22:30 UTC 2020


Author: jmg
Date: Tue Sep 15 00:22:30 2020
New Revision: 365738
URL: https://svnweb.freebsd.org/changeset/base/365738

Log:
  MFC r365623: Don't clear reserved bits per RealTek
  
  This is a direct commit as the driver is significantly different.

Modified:
  stable/11/sys/dev/usb/net/if_ure.c

Modified: stable/11/sys/dev/usb/net/if_ure.c
==============================================================================
--- stable/11/sys/dev/usb/net/if_ure.c	Mon Sep 14 23:51:14 2020	(r365737)
+++ stable/11/sys/dev/usb/net/if_ure.c	Tue Sep 15 00:22:30 2020	(r365738)
@@ -710,7 +710,9 @@ ure_init(struct usb_ether *ue)
 	    ~URE_RXDY_GATED_EN);
 
 	/* Set Rx mode. */
-	rxmode = URE_RCR_APM;
+	rxmode = ure_read_4(sc, URE_PLA_RCR, URE_MCU_TYPE_PLA);
+	rxmode &= ~URE_RCR_ACPT_ALL;
+	rxmode |= URE_RCR_APM;
 
 	/* If we want promiscuous mode, set the allframes bit. */
 	if (ifp->if_flags & IFF_PROMISC)


More information about the svn-src-all mailing list