usb: misc: usbtest: format the data pattern according to max packet size
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 1 Sep 2015 01:48:01 +0000 (09:48 +0800)
committerFelipe Balbi <balbi@ti.com>
Sun, 27 Sep 2015 15:54:31 +0000 (10:54 -0500)
commitb9a6e8e1001e28fecbd74c073f5503dac2790563
tree6a97bf4b3fb25e3dbe8c8113f30e39abaab61d05
parent169900f96792c11a5435773dd379046bc8036704
usb: misc: usbtest: format the data pattern according to max packet size

With this change, the host and gadget doesn't need to agree with transfer
length for comparing the data, since they doesn't know each other's
transfer size, but know max packet size.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
(Fixed the 'line over 80 characters warning' by Peter Chen)
Tested-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/misc/usbtest.c