Skip to content

Commit

Permalink
tools: ffs-aio-example: add missing wMaxPacketSize for HS descs
Browse files Browse the repository at this point in the history
It's needed, to have more than 64 bytes of maxpacketsize.

Signed-off-by: Robert Baldyga <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
  • Loading branch information
Robert Baldyga authored and Felipe Balbi committed Jan 12, 2015
1 parent 7acc997 commit a7657a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/usb/ffs-aio-example/simple/device_app/aio_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
},
};
Expand Down

0 comments on commit a7657a9

Please sign in to comment.