USB: usbtest - Add tests to ensure HCDs can accept byte aligned buffers.
authorMartin Fuzzey <mfuzzey@gmail.com>
Sun, 16 Jan 2011 18:17:11 +0000 (19:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 03:42:13 +0000 (19:42 -0800)
commit084fb206a91f72b22c4e2f41709730a81e3e0de6
tree91c015766ad21448b8f26dd36fbda9db6fb334d4
parent50a6cb932d5cccc6a165219f137b87ea596b4cd0
USB: usbtest - Add tests to ensure HCDs can accept byte aligned buffers.

Add a set of new tests similar to the existing ones but using
transfer buffers at an "odd" address [ie offset of +1 from
the buffer obtained by kmalloc() or usb_alloc_coherent()]

The new tests are:
#17 : bulk out (like #1) using kmalloc and DMA mapping by USB core.
#18 : bulk in (like #2) using kmalloc and DMA mapping by USB core.
#19 : bulk out (like #1) using usb_alloc_coherent()
#20 : bulk in (like #2) using usb_alloc_coherent()
#21 : control write (like #14)
#22 : isochonous out (like #15)
#23 : isochonous in (like #16)

Signed-off-by: Martin Fuzzey <mfuzzey@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usbtest.c