u-boot/drivers
Remy Bohmer eba1f2fc75 Make usb-stop() safe to call multiple times in a row.
A recent commit (936897d4d1)
enabled the usb_stop() command in common/cmd_bootm.c which was
not enabled for some time, because no board did actually set the
CFG_CMD_USB flag. So, now the usb_stop() is executed before
loading the linux kernel.

However, the usb_ohci driver hangs up (at least on AT91SAM) if the
driver is stopped twice (e.g. the peripheral clock is stopped on AT91).
If some other piece of code calls usb_stop() before the bootm command,
this command will hangup the system during boot.
(usb start and stop is typically used while booting from usb memory stick)

But, stopping the usb stack twice is useless anyway, and a flag already
existed that kept track on the usb_init()/usb_stop() calls.
So, we now check if the usb stack is really started before we stop it.

This problem is now fixed in both the upper as low-level layer.

Signed-off-by: Remy Bohmer <linux@bohmer.net>
Acked-by: Markus Klotzbuecher <mk@denx.de>
2008-09-09 16:59:25 +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 Minor code cleanup: keep lists sorted. 2008-08-18 23:50:20 +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 Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00
net net: smc911x: Add pkt_data_pull and pkt_data_push function 2008-09-02 21:18:19 -07: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 Makefile: fix bug introduced by commit 47ffd6c2 2008-09-09 16:55:47 +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 Make usb-stop() safe to call multiple times in a row. 2008-09-09 16:59:25 +02:00
video 85xx: socrates: Enable Lime support. 2008-09-09 10:14:13 +02:00