tools: ffs-aio-example: add missing wMaxPacketSize for HS descs
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 5 Jan 2015 09:44:44 +0000 (10:44 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:13:29 +0000 (12:13 -0600)
It's needed, to have more than 64 bytes of maxpacketsize.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
tools/usb/ffs-aio-example/simple/device_app/aio_simple.c

index adc310a6d48991072ae0081318ac3d60a00a480d..1f44a29818bf02991cfe264e5b13796d8219067e 100644 (file)
@@ -103,12 +103,14 @@ static const struct {
                        .bDescriptorType = USB_DT_ENDPOINT,
                        .bEndpointAddress = 1 | USB_DIR_IN,
                        .bmAttributes = USB_ENDPOINT_XFER_BULK,
+                       .wMaxPacketSize = htole16(512),
                },
                .bulk_source = {
                        .bLength = sizeof(descriptors.hs_descs.bulk_source),
                        .bDescriptorType = USB_DT_ENDPOINT,
                        .bEndpointAddress = 2 | USB_DIR_OUT,
                        .bmAttributes = USB_ENDPOINT_XFER_BULK,
+                       .wMaxPacketSize = htole16(512),
                },
        },
 };