usb: gadget: f_uvc: Sanity check wMaxPacketSize for SuperSpeed
authorRoger Quadros <rogerq@ti.com>
Wed, 8 Mar 2017 14:05:44 +0000 (16:05 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 22 Mar 2017 09:21:09 +0000 (11:21 +0200)
commit16bb05d98c904a4f6c5ce7e2d992299f794acbf2
treed9e261e28cea84e01639ec82cb5df06e6402b18c
parent09424c50b7dff40cb30011c09114404a4656e023
usb: gadget: f_uvc: Sanity check wMaxPacketSize for SuperSpeed

As per USB3.0 Specification "Table 9-20. Standard Endpoint Descriptor",
for interrupt and isochronous endpoints, wMaxPacketSize must be set to
1024 if the endpoint defines bMaxBurst to be greater than zero.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_uvc.c