Skip to content
Snippets Groups Projects
Commit 1b4bd0e6 authored by Stefan Herbrechtsmeier's avatar Stefan Herbrechtsmeier Committed by Marek Vasut
Browse files

usb_storage: fix ehci driver max transfer size


The commit 5dd95cf9 '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: default avatarStefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
parent e3b31c8d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment