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 <j...@freebsd.org> -----

Date: Tue, 15 Sep 2020 00:22:30 +0000 (UTC)
From: John-Mark Gurney <j...@freebsd.org>
To: src-committ...@freebsd.org, svn-src-...@freebsd.org, 
svn-src-sta...@freebsd.org, svn-src-stable...@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."
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to