Skip to content
Snippets Groups Projects
Commit 5dd95cf9 authored by Kyle Moffett's avatar Kyle Moffett Committed by Wolfgang Denk
Browse files

usb_storage: Fix EHCI "out of buffer pointers" with CD-ROM


When performing large bulk reads from a CD or DVD using the U-Boot
usb_storage driver, it generates requests of up to 20 blocks at a time.

With a standard 512-byte block size, that is 10240 bytes and within the
limit of U-Boot's EHCI driver (maximum 5 pages at 4k per page).

Unfortunately CD-ROM media has a 2048-byte blocksize, resulting in a
maximum transfer size of 40960 bytes, which does not fit.

Since the EHCI specification is impossibly obtuse and far beyond my
comprehension, I chose to dynamically compute the limit based on the
blocksize.

Signed-off-by: default avatarKyle Moffett <Kyle.D.Moffett@boeing.com>
parent 46236b14
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment