Home
last modified time | relevance | path

Searched hist:d1c880c66c2f4d676afd91ce041a3e66c2ab3fa4 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/host/
H A Ddwc2.cd1c880c66c2f4d676afd91ce041a3e66c2ab3fa4 Sun Mar 08 17:08:13 UTC 2015 Stephen Warren <swarren@wwwdotorg.org> usb: dwc2: fix aligned buffer usage

The original aligned_buffer usage:
a) Uselessly copied data into the aligned buffer even for IN
transactions. Fix this my making the copy conditional.
b) Always programmed the HW to transfer to/from the start of the aligned
buffer. This worked fine for OUT transactions since the memcpy copied
the OUT data to this location too. However, for large IN transactions,
since the copy from the aligned buffer to the "client" buffer was
deferred until after all chunks were transferred. it resulted in each
chunk's transfer over-writing the data for the first transfer. Fix
this by copying IN data as soon as it's received.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>