usb: mv_udc: Improve allocation of qTD items
authorMarek Vasut <marex@denx.de>
Wed, 10 Jul 2013 01:16:40 +0000 (03:16 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:32 +0000 (23:01 +0200)
commit8a095a68ce8e7989dec6af4011f0f41bbc554f22
tree5953b488cc016d5233b629e45cde9cea5a044e36
parentb5cd45bfad3a25db25b40cfda9e7db80e5ee65f7
usb: mv_udc: Improve allocation of qTD items

Allocate the qTD items all at once instead of allocating them
separately. Moreover, make sure each qTD is properly aligned
to 32-bytes boundary and that cache can be safely flushed over
each qTD touple.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Lei Wen <leiwen@marvell.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
drivers/usb/gadget/mv_udc.c
include/usb/mv_udc.h