[U-Boot] [PATCH v2] usb_storage: fix ehci driver max transfer size

Stefan Herbrechtsmeier
2012-07-18T15:46:12Z

Am 18.07.2012 14:50, schrieb Marek Vasut:
>> The commit 5dd95cf93dfffa1d19a1928990852aac9f55b9d9 'usb_storage:
>> Fix EHCI "out of buffer pointers" with CD-ROM' introduce a bug in
>> usb_storage as it wrongly assumes that every transfer can use
>> 4096 bytes per qt_buffer. This is wrong if the start address of
>> the data is not page aligned to 4096 bytes and leads to 'EHCI
>> timed out on TD' messages because of 'out of buffer pointers'
>> in ehci_td_buffer function.
>>
>> The bug appears during load of a fragmented file and
>> read from or write to an unaligned memory address.
>>
>> Cc: Marek Vasut <marex@denx.de>
>> Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
> [...]
>
> I applied this and pushed into u-boot-usb. Thanks again for finding and fixing
> this.
>
> I'm still uncertain if we should add it into current release so late, probably
> not though. Therefore I'll queue it for next, ok?
Given that there was nobody other than me with the problem until now, it
should be okay.

Regards,
Stefan