[U-Boot-Users] isp116x-hcd and usb_storage

Markus Klotzbücher mk at denx.de
Tue Sep 18 16:56:26 CEST 2007


tike64 <tike64 at yahoo.com> writes:
> --- tike64 wrote:
>> --- Markus Klotzbücher wrote:
>> > U-Boots USB implementation is known to have some timing issues
>
> OK, it really seems to be a timing issue. I have now a correct 'fatls'
> output with all debugging disabled. I added one delay into the
> usb_stor_BBB_transport function like this:
>
> 	if (srb->datalen == 0)
> 		goto st;
> 	USB_STOR_PRINTF("DATA phase\n");
> -->	wait_ms(200);
> 	if (dir_in)
>
> 100 ms was too short.
>
> Now the question is, what is the correct way to fix this?

Have you got an idea why this delay is needed? The correct way would be
to figure this out and send a patch and explanation to the list.

Thanks in advance.

Best regards

Markus Klotzbücher

--
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de




More information about the U-Boot mailing list