]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
greybus: es1/es2: set transfer flag to send a zero-length packet
authorAlexandre Bailon <abailon@baylibre.com>
Mon, 31 Aug 2015 07:00:16 +0000 (09:00 +0200)
committerJohan Hovold <johan@hovoldconsulting.com>
Tue, 1 Sep 2015 12:36:52 +0000 (14:36 +0200)
commit977e209ab41073def3cf0e1034c429a832ba54df
treec113c55a2e4be0b1029dd05953706e40058da9c2
parent98676ca83680a2ca6afb38e900b3d956f6917185
greybus: es1/es2: set transfer flag to send a zero-length packet

Greybus messages with a multiple size of 512B generate timeouts
(any other message size doesn't).
512B is exactly the packet size of a bulk out endpoint.
Hence USB device is expecting a short (< 512B)
or zero-length packet to finish the transfer,
which is never generated and causes the timeout.

Set the transfer flag to send a zero-length packet in this situation.

Signed-off-by: Alexandre Bailon <abailon@baylibre.com>
Reviewed-by: Patrick Titiano <ptitiano@baylibre.com>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
drivers/staging/greybus/es1.c
drivers/staging/greybus/es2.c