u-boot-brain/drivers
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
..
bios_emulator Big white-space cleanup. 2008-05-21 00:14:08 +02:00
block drivers/block: Move conditional compilation to Makefile 2008-08-13 01:40:39 +02:00
dma drivers/dma: Move conditional compilation to Makefile 2008-08-13 01:40:39 +02:00
hwmon ppc4xx: Allow DTT_I2C_DEV_CODE configured by CFG_I2C_DTT_ADDR 2008-09-10 11:08:45 +02:00
i2c Merge branch 'Makefile' of git://git.denx.de/u-boot-arm 2008-09-01 00:16:29 +02:00
input drivers/input: Move conditional compilation to Makefile 2008-08-13 01:40:40 +02:00
misc mpc85xx: Add support for the MPC8536 2008-08-27 11:43:54 -05:00
mmc atmel_mci: Fix printf() format warnings 2008-07-23 16:15:01 +02:00
mtd Merge branch 'master' of git://git.denx.de/u-boot-nand-flash 2008-09-13 01:45:56 +02:00
net Merge branch 'master' of /home/wd/git/u-boot/custodians 2008-09-12 16:14:28 +02:00
pci drivers/pci: Move conditional compilation to Makefile 2008-08-13 01:40:40 +02:00
pcmcia pcmcia/ti_pci1410a: Move compile condition to the Makefile 2008-06-26 17:04:25 +02:00
qe drivers/qe: Move conditional compilation to Makefile 2008-08-13 01:40:41 +02:00
rtc i.MX31: Make the SPI bus and chip select configurable for MC13783 2008-09-12 01:23:44 +02:00
serial Makefile: fix bug introduced by commit 47ffd6c2 2008-09-09 16:55:47 +02:00
spi soft_spi: move to drivers/spi 2008-08-29 12:25:02 +02:00
usb fix USB initialisation procedure 2008-10-14 16:42:44 +02:00
video 85xx: socrates: Enable Lime support. 2008-09-09 10:14:13 +02:00