Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 2020 17:26:44 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        stable@FreeBSD.org
Subject:   CFT: update to if_ure driver
Message-ID:  <20200915002644.GK4213@funkthat.com>

next in thread | raw e-mail | index | archive | help
Hello,

I have committed an update to the ure driver on the stable/11 branch.
I don't have any 8152 devices to test with, so I'd greatly appreciate
any feedback on if this works or doesn't work.

Also, if you have a spare 8152 that you could part with and send to
me, it'd make testing changes like these easier.

On stable/11, 8153 devices are attached via the cdce devices, and so
will not be affected by this change.

----- Forwarded message from John-Mark Gurney <jmg@FreeBSD.org> -----

Date: Tue, 15 Sep 2020 00:22:30 +0000 (UTC)
From: John-Mark Gurney <jmg@FreeBSD.org>
To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject: svn commit: r365738 - stable/11/sys/dev/usb/net

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)

----- End forwarded message -----

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



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