On 17/07/17(Mon) 15:24, sc dying wrote: > On 2017/07/17 08:24, Martin Pieuchot wrote: > > On 15/07/17(Sat) 21:16, sc dying wrote: > >> This patch does: > >> > >> - Enable RX aggregation. > > > > Does it work on all chips? > > I don't have all, but it works with mine that have RTL8152 (ver 4c10) > and RTL8153 (ver 5c20).
That's the two supported chips, so that should be good enough. > >> - Call usbd_set_config before configuring endpoints in ure_init to fix > >> an error when re-opening pipes. I grabbed the code from if_kue.c. > > > > Which error? Calling usbd_set_config() should be avoid as much as > > possible in driver code. > > Without patch, ure on usb-3 port says this error > > ure0: usb errors on rx: IOERROR > > when down the interface and it up. This is certainly a bug in the way pipe are closed, or more likely in xhci(4). Can you reproduce the problem on ehci(4)? Do you find anything useful if you define XHCI_DEBUG in your kernel?