u-boot-brain/drivers
Matej Frančeškin 8c86501819 MUSB driver: Timeout is never detected as the while loop does not end
Timeout variable is decremented once more when while condition is not met.
Following "if" does not detect correctly that timeout has occurred.
Because of this bug the "usb start" command on AM335X-EVM board did not detect correctly that USB device was not attached.

	timeout = musb_cfg.timeout;
	while (timeout--)
		if (readb(&musbr->devctl) & MUSB_DEVCTL_HM)
 			break;
	/* if musb core is not in host mode, then return */
	if (!timeout)
		return -1;

Signed-off-by: Matej Franceskin <Matej.Franceskin@comtrade.com>
CC: Marek Vasut <matex@denx.de>?
2012-09-01 16:21:53 +02:00
..
bios_emulator Add abs() macro to return absolute value 2012-05-15 08:31:37 +02:00
block Remove remaining mdelay() macros 2012-07-08 22:15:08 +02:00
bootcount Consolidate bootcount code into drivers/bootcount 2012-09-01 14:26:02 +02:00
dfu dfu: MMC specific routines for DFU operation 2012-09-01 16:21:51 +02:00
dma DMA: Split the APBH DMA init into block and channel init 2012-04-16 14:53:59 +02:00
fpga Remove execute permissions from source files 2012-03-04 21:56:15 +01:00
gpio sh: Add support pin function control using GPIO 2012-08-08 10:24:41 +09:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c I2C: Add support for Multi channel 2012-07-31 08:03:03 +02:00
input tegra: Add tegra keyboard driver 2012-05-15 08:31:40 +02:00
misc pmic: dialog: Avoid name conflicts 2012-05-15 08:31:34 +02:00
mmc FSL/eSDHC: enable the clock to detect the SD card 2012-07-13 17:04:50 -05:00
mtd Merge branch 'sf' of git://git.denx.de/u-boot-blackfin 2012-09-01 12:22:31 +02:00
net Merge branch 'next' of git://git.denx.de/u-boot 2012-07-30 20:39:52 +02:00
pci pci: declare pciauto functions in header 2012-03-30 22:46:00 +02:00
pcmcia PXA: Remove PXA PCMCIA support 2012-03-26 23:09:23 +02:00
power i2c: Add TPS6586X driver 2012-05-15 08:31:37 +02:00
qe drivers/qe/uec.c: Fix compile warning 2012-05-22 13:41:48 -05:00
rtc Add support for DS1388. 2012-08-10 23:46:54 +02:00
serial serial: sh: Add support Renesas R8A7740 2012-08-08 09:52:06 +09:00
spi spi: Fix merge conflicts - Makefile 2012-08-07 23:08:14 +02:00
tpm Introduce generic TPM support in u-boot 2011-12-07 08:45:51 +01:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb MUSB driver: Timeout is never detected as the while loop does not end 2012-09-01 16:21:53 +02:00
video ipu_common: Add ldb_clk for use in parenting the pixel clock 2012-07-10 11:35:39 +02:00
watchdog AT91: fix at91sam_wdt.c to reworked header files 2011-05-18 07:56:51 +02:00