aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-09-29 15:18:14 -0400
committerFelipe Balbi <balbi@ti.com>2014-10-20 16:58:49 -0400
commit703a303c187ef7e3c8daf8a1be343576c9579eaf (patch)
tree176eec35369902f79db35fcc5361bd15509cd3fe
parente3122f5fedb6d88a043b60822f601f7ab517a465 (diff)
usb: gadget: function: uac2: add wMaxPacketSize to ep desc
Endpoint descriptors should pass wMaxPacketSize. Note that this also fixes USB20CV Other Speed Endpoint Descriptor Tests. Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/usb/gadget/function/f_uac2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/gadget/function/f_uac2.c b/drivers/usb/gadget/function/f_uac2.c
index a5a27a504d67..fa511180c241 100644
--- a/drivers/usb/gadget/function/f_uac2.c
+++ b/drivers/usb/gadget/function/f_uac2.c
@@ -772,6 +772,7 @@ struct usb_endpoint_descriptor fs_epout_desc = {
772 772
773 .bEndpointAddress = USB_DIR_OUT, 773 .bEndpointAddress = USB_DIR_OUT,
774 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, 774 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC,
775 .wMaxPacketSize = cpu_to_le16(1023),
775 .bInterval = 1, 776 .bInterval = 1,
776}; 777};
777 778
@@ -780,6 +781,7 @@ struct usb_endpoint_descriptor hs_epout_desc = {
780 .bDescriptorType = USB_DT_ENDPOINT, 781 .bDescriptorType = USB_DT_ENDPOINT,
781 782
782 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, 783 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC,
784 .wMaxPacketSize = cpu_to_le16(1024),
783 .bInterval = 4, 785 .bInterval = 4,
784}; 786};
785 787
@@ -847,6 +849,7 @@ struct usb_endpoint_descriptor fs_epin_desc = {
847 849
848 .bEndpointAddress = USB_DIR_IN, 850 .bEndpointAddress = USB_DIR_IN,
849 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, 851 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC,
852 .wMaxPacketSize = cpu_to_le16(1023),
850 .bInterval = 1, 853 .bInterval = 1,
851}; 854};
852 855
@@ -855,6 +858,7 @@ struct usb_endpoint_descriptor hs_epin_desc = {
855 .bDescriptorType = USB_DT_ENDPOINT, 858 .bDescriptorType = USB_DT_ENDPOINT,
856 859
857 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC, 860 .bmAttributes = USB_ENDPOINT_XFER_ISOC | USB_ENDPOINT_SYNC_ASYNC,
861 .wMaxPacketSize = cpu_to_le16(1024),
858 .bInterval = 4, 862 .bInterval = 4,
859}; 863};
860 864