summaryrefslogtreecommitdiff
path: root/drivers/mmc/gen_atmel_mci.c
diff options
context:
space:
mode:
authorMatej Frančeškin <matej.franceskin@comtrade.com>2012-08-30 09:24:39 +0200
committerMarek Vasut <marex@denx.de>2012-09-01 16:21:53 +0200
commit8c8650181904cee37721fa303622cd37255d51d6 (patch)
tree2e4c905e5557c6ead61092c79886a9c79fd6729b /drivers/mmc/gen_atmel_mci.c
parent749f8180c2b516abefdda3f5833d39f49b60f84d (diff)
downloadu-boot-imx-8c8650181904cee37721fa303622cd37255d51d6.zip
u-boot-imx-8c8650181904cee37721fa303622cd37255d51d6.tar.gz
u-boot-imx-8c8650181904cee37721fa303622cd37255d51d6.tar.bz2
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>?
Diffstat (limited to 'drivers/mmc/gen_atmel_mci.c')
0 files changed, 0 insertions, 0 deletions