uboot-mt623x/drivers/usb
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
..
Makefile Fix compile error related to r8a66597-hcd & usb 2008-08-12 00:00:03 +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
r8a66597-hcd.c Fix compile error related to r8a66597-hcd & usb 2008-08-12 00:00:03 +02:00
r8a66597.h Coding style cleanup, update CHANGELOG, prepare release 2008-08-12 16:08:38 +02:00
sl811.h drivers/usb : move usb drivers to drivers/usb 2007-11-25 23:27:38 +01:00
sl811_usb.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
usb_ohci.c Make usb-stop() safe to call multiple times in a row. 2008-09-09 16:59:25 +02:00
usb_ohci.h USB EHCI: reset root hub 2008-09-06 01:24:55 +02:00
usbdcore.c Fix more printf() format warnings 2008-07-30 00:54:25 +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