u-boot/drivers/usb
Remy Bohmer 4886720844 fix USB initialisation procedure
The max packet size is encoded as 0,1,2,3 for 8,16,32,64 bytes.
At some places directly 8,16,32,64 was used instead of the encoded
value. Made a enum for the options to make this more clear and to help
preventing similar errors in the future.

After fixing this bug it became clear that another bug existed where
the 'pipe' is and-ed with PIPE_* flags, where it should have been
'usb_pipetype(pipe)', or even better usb_pipeint(pipe).

Also removed the triple 'get_device_descriptor' sequence, it has no use,
and Windows nor Linux behaves that way.
There is also a poll going on with a timeout when usb_control_msg() fails.
However, the poll is useless, because the flag will never be set on a error,
because there is no code that runs in a parallel that can set this flag.
Changed this to something more logical.

Tested on AT91SAM9261ek and compared the flow on the USB bus to what
Linux is doing. There is no difference anymore in the early initialisation
sequence.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Signed-off-by: Markus Klotzbuecher <mk@denx.de>
2008-10-14 16:42:44 +02:00
..
isp116x-hcd.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
isp116x.h drivers/usb : move usb drivers to drivers/usb 2007-11-25 23:27:38 +01:00
Makefile Fix compile error related to r8a66597-hcd & usb 2008-08-12 00:00:03 +02:00
r8a66597-hcd.c usb: Fix compile warning of r8a66597-hcd 2008-09-19 07:37:08 +02:00
r8a66597.h Coding style cleanup, update CHANGELOG, prepare release 2008-08-12 16:08:38 +02:00
sl811_usb.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
sl811.h drivers/usb : move usb drivers to drivers/usb 2007-11-25 23:27:38 +01:00
usb_ohci.c fix USB initialisation procedure 2008-10-14 16:42:44 +02:00
usb_ohci.h Refactoring parts of the common USB OHCI code 2008-09-17 15:41:16 +02:00
usbdcore_ep0.c fix USB devices with multiple configurations 2008-07-10 11:51:52 +02:00
usbdcore_mpc8xx.c fix comments with new drivers organization 2008-01-09 21:48:49 +01:00
usbdcore_omap1510.c Add support for OMAP5912 and OMAP16xx to usbdcore_omap1510.c 2008-08-07 17:32:10 +02:00
usbdcore.c Fix more printf() format warnings 2008-07-30 00:54:25 +02:00