]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: mv_udc: Properly align the endpoint QH and qTD list
authorMarek Vasut <marex@denx.de>
Wed, 10 Jul 2013 01:16:37 +0000 (03:16 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 29 Jul 2013 21:01:32 +0000 (23:01 +0200)
commitab65da1446d8ba423514c2236291962adf2bd2a6
tree9a944d2572fb5500a1a72c53b6b79ba59842f6de
parentab52df19c1195699516430be14b6be2d27229444
usb: mv_udc: Properly align the endpoint QH and qTD list

The endpoint QH list has to be aligned to 10-bit boundary. We also have
to make sure the list is aligned on a cacheline boundary. Make sure it
is. Furthermore, check if the memory allocation for the QH list didn't
fail. Moveover, improve the comment about the QH list structure.

Finally, the qTD item list has to be aligned only to 5-bit boundary, not
10-bit as it is now, fix this as well.

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