[Solved] EHCI timed out on TD - token=XXXX July 05, 2017 04:45PM |
Registered: 11 years ago Posts: 18 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 05, 2017 04:47PM |
Registered: 11 years ago Posts: 18 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 05, 2017 04:52PM |
Registered: 11 years ago Posts: 18 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 05, 2017 08:01PM |
Registered: 8 years ago Posts: 310 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 06, 2017 05:14PM |
Admin Registered: 13 years ago Posts: 18,994 |
static int usb_test_unit_ready(ccb *srb, struct us_data *ss) { int retries = 10; + int gave_extra_time = 0; do { memset(&srb->cmd[0], 0, 12); @@ -1019,6 +1052,13 @@ if ((srb->sense_buf[2] == 0x02) && (srb->sense_buf[12] == 0x3a)) return -1; + /* If the status is "Not Ready - becoming ready", give it + * more time. Linux issues a spinup command (once) and gives + * it 100 seconds. */ + if (srb->sense_buf[2] == 0x02 && srb->sense_buf[12] == 0x04 && + gave_extra_time == 0) + gave_extra_time = retries = 100; /* Allow 10 seconds. */ + mdelay(100); } while (retries--);
Re: [Solved] EHCI timed out on TD - token=XXXX July 06, 2017 08:47PM |
Registered: 11 years ago Posts: 18 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 06, 2017 08:53PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 07, 2017 02:18AM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 07, 2017 04:39PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 07, 2017 05:21PM |
Registered: 11 years ago Posts: 18 |
Quote
For boxes that boot with a HDD or MMC rootfs, we don't care much about the spin up time of the USB drive. Actually we want to ignore the failure rather quickly.
Re: [Solved] EHCI timed out on TD - token=XXXX July 07, 2017 06:42PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX July 07, 2017 07:51PM |
Registered: 11 years ago Posts: 18 |
Quote
But to have the most flexible implementation, the max spin time should be adjustable by user. Linux have quirks table, but u-boot does not. Therefore I'll merge your patch, but keeping the code about factoring usb_ready_retry env into the max spin time. In a multi-drive configuration, this env will be useful.
Re: [Solved] EHCI timed out on TD - token=XXXX July 08, 2017 04:46AM |
Admin Registered: 13 years ago Posts: 18,994 |
Quote
It took me quite a bit of work to isolate the problem, and it was really tricky to find & fix it. I bet I flashed 100-150 builds. Clearly nobody had tracked it down before me, otherwise it would have been fixed.
Quote
Better if the uboot code just works without having to configure special things.
IvanD
Re: [Solved] EHCI timed out on TD - token=XXXX February 19, 2018 08:03AM |
Re: [Solved] EHCI timed out on TD - token=XXXX November 07, 2018 01:40AM |
Registered: 6 years ago Posts: 17 |
Re: [Solved] EHCI timed out on TD - token=XXXX November 07, 2018 03:05AM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX November 07, 2018 04:16AM |
Registered: 6 years ago Posts: 17 |
Re: [Solved] EHCI timed out on TD - token=XXXX November 07, 2018 04:30AM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX November 07, 2018 04:34AM |
Registered: 6 years ago Posts: 17 |
Re: [Solved] EHCI timed out on TD - token=XXXX November 30, 2018 09:30AM |
Registered: 5 years ago Posts: 8 |
Re: [Solved] EHCI timed out on TD - token=XXXX November 30, 2018 05:13PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX December 08, 2018 12:07AM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX December 08, 2018 02:02PM |
Registered: 5 years ago Posts: 8 |
Re: [Solved] EHCI timed out on TD - token=XXXX December 08, 2018 04:22PM |
Admin Registered: 13 years ago Posts: 18,994 |
dmesg | grep i badAnd flash
flash_erase /dev/mtd0 0x40000 4 nandwrite -s 262144 /dev/mtd0 uboot.2015.10-tld-3.ox820.mtd0.img
Quote
uboot.2015.10-tld-3.ox820.mtd0.img
uboot.spl.2013.10.ox820.850mhz.mtd0.img
uboot.2015.10-tld-3.ox820.environment
uboot.2015.10-tld-3.ox820.environment.img
Re: [Solved] EHCI timed out on TD - token=XXXX December 15, 2018 06:30AM |
Registered: 5 years ago Posts: 8 |
Re: [Solved] EHCI timed out on TD - token=XXXX December 15, 2018 06:39AM |
Registered: 5 years ago Posts: 8 |
Re: [Solved] EHCI timed out on TD - token=XXXX December 15, 2018 10:01AM |
Registered: 7 years ago Posts: 373 |
Re: [Solved] EHCI timed out on TD - token=XXXX December 15, 2018 04:23PM |
Admin Registered: 13 years ago Posts: 18,994 |
printenv
Re: [Solved] EHCI timed out on TD - token=XXXX December 17, 2018 08:45PM |
Admin Registered: 13 years ago Posts: 18,994 |
Re: [Solved] EHCI timed out on TD - token=XXXX December 18, 2018 12:48PM |
Registered: 5 years ago Posts: 8 |