[U-Boot] [PATCH 0/1] dm: usb: Fix divide by 0 errors in host drivers caused by not setting maxpsize

Hans de Goede hdegoede at redhat.com
Wed Apr 29 11:40:33 CEST 2015


Hi Simon,

While working on moving the sunxi ehci code over to the driver model I've
found this bug in the usb uclass which causes a div by zero error.

I've spend a couple of hours yesterday evening debugging this and I'm happy
to report that I've a fix now. This fix has not seen as much testing as
I would have liked, but I believe it is correct and want to share it now
anyways to avoid people doing double work.

While thinking more about this I've come up with what I believe is a better
way to deal with this all together. I'll send that out right after this one,
note that the intend is that only one of the 2 patches gets applied, preferably
the latter as I believe that one is the best.

Regards,

Hans

p.s.

I've found 2 other issues with the dm usb code:

1) usb-1 devices / hubs behind a usb-2 (root)hub do not seem to work, this is
a familiar issue which I fixed in the pre dm usb code a while back. I'll
investigate this one myself.

2) "usb reset" is buggered, it either hangs or reboots the system. I would
appreciate if you could take a look (assuming you can reproduce it).


More information about the U-Boot mailing list