Skip to contentSkip to conversation

uvc: correct speed testing

PATCH In review Oliver Neukum 2 participants 2 messages May 2, 2016 – May 9, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 uvc: correct speed testing

Allow for SS+ USB devices

---
 drivers/media/usb/uvc/uvc_video.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/usb/uvc/uvc_video.c +1 -0
index 075a0fe..b5589d5 100644
@@ -1470,6 +1470,7 @@ static unsigned int uvc_endpoint_max_bpi(struct usb_device *dev,
 
 	switch (dev->speed) {
 	case USB_SPEED_SUPER:
+	case USB_SPEED_SUPER_PLUS:
 		return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval);
 	case USB_SPEED_HIGH:
 		psize = usb_endpoint_maxp(&ep->desc);
Signature · 1 line
2.1.4
maintainer Reviewed-by on v1 2/2
#1 lore raw

Hi Oliver,

Thank you for the patch.

Quoted 3 lines · On Monday 02 May 2016 13:23:21 Oliver Neukum wrote:

Allow for SS+ USB devices

And applied to my tree.

Quoted 17 lines
---
 drivers/media/usb/uvc/uvc_video.c | 1 +
 1 file changed, 1 insertion(+)
(quoted diff) +0 -0

b/drivers/media/usb/uvc/uvc_video.c index 075a0fe..b5589d5 100644

drivers/media/usb/uvc/uvc_video.c +1 -0
@@ -1470,6 +1470,7 @@ static unsigned int uvc_endpoint_max_bpi(struct
 usb_device *dev,
 
 	switch (dev->speed) {
 	case USB_SPEED_SUPER:
+	case USB_SPEED_SUPER_PLUS:
 		return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval);
 	case USB_SPEED_HIGH:

psize = usb_endpoint_maxp(&ep->desc);

Signature · 3 lines
Regards,

Laurent Pinchart