]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: gadget: f_sourcesink: format data pattern according to max packet size
authorPeter Chen <peter.chen@freescale.com>
Tue, 1 Sep 2015 01:48:02 +0000 (09:48 +0800)
committerFelipe Balbi <balbi@ti.com>
Sun, 27 Sep 2015 15:54:31 +0000 (10:54 -0500)
commit046839098c34f0ade17b7060e7385bd581151b3b
tree9e4004bfb33dfd1a52c5222d9ef2ac6cad49010e
parentb9a6e8e1001e28fecbd74c073f5503dac2790563
usb: gadget: f_sourcesink: format data pattern according to max packet size

Since the host and gadget can't agree with transfer length before
each transfer, but they agree with max packet size for each
endpoint, we use max packet size to format data pattern.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_sourcesink.c