usb: gadget: mv_udc: optimize bounce
authorTroy Kisky <troy.kisky@boundarydevices.com>
Thu, 10 Oct 2013 22:28:01 +0000 (15:28 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 20 Oct 2013 21:46:33 +0000 (23:46 +0200)
commit1ebf02787a1621143ecde48db86459067f9544e5
treea3840ab9c780a5d62c4be1c5c9d42ad4aa288ce4
parent3b59abf583143a9ed11ea0d05fdad02afb996d45
usb: gadget: mv_udc: optimize bounce

Only perform one copy, either in the bounce
routine for IN transfers, or the debounce
rtn for OUT transfer.

On out transfers, only copy the number
of bytes received from the bounce buffer

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
drivers/usb/gadget/mv_udc.c