Re: [U-Boot] [PATCH V2 1/2] usb: dwc2: fix aligned buffer usage

2015-03-09 Thread Stephen Warren
On 03/09/2015 06:46 AM, Marek Vasut wrote: On Sunday, March 08, 2015 at 06:08:13 PM, Stephen Warren wrote: 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 tra

Re: [U-Boot] [PATCH V2 1/2] usb: dwc2: fix aligned buffer usage

2015-03-09 Thread Marek Vasut
On Sunday, March 08, 2015 at 06:08:13 PM, Stephen Warren wrote: > 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

[U-Boot] [PATCH V2 1/2] usb: dwc2: fix aligned buffer usage

2015-03-09 Thread Stephen Warren
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