From 7dab4923247b4d07e63bdea80f6063a778d07d12 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 11 Aug 2017 01:08:13 +0200 Subject: devusb: superspeed bandwidth allocation handled by controller, skip usbload() calculation with xhci, bandwidth allocations are handled by the controller and there are various speed settings possible that currently not exposed in the Udev. so just keep usbload() as it is for usb2 and keep ep->load as zero for superspeed. --- sys/src/9/port/devusb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/src/9/port/devusb.c b/sys/src/9/port/devusb.c index 7e713c7a9..362d40ca9 100644 --- a/sys/src/9/port/devusb.c +++ b/sys/src/9/port/devusb.c @@ -838,7 +838,6 @@ usbload(int speed, int maxpkt) l = 0; bs = 10UL * maxpkt; switch(speed){ - case Superspeed: case Highspeed: l = 55*8*2 + 2 * (3 + bs) + Hostns; break; @@ -897,7 +896,7 @@ usbopen(Chan *c, int omode) error(Enotconf); ep->clrhalt = 0; ep->rhrepl = -1; - if(ep->load == 0) + if(ep->load == 0 && ep->dev->speed != Superspeed) ep->load = usbload(ep->dev->speed, ep->maxpkt); ep->hp->epopen(ep); -- cgit v1.2.3