summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRodolfo Giometti <giometti@enneenne.com>2007-04-23 13:10:52 +0200
committerMarkus Klotzbuecher <mk@pollux.denx.de>2007-04-23 13:10:52 +0200
commitd98c0885ad617fccf21e7c26ef8cb728fbfb2459 (patch)
tree57b8a7d95461e2a50a50aa27ef3d45a4008ad281 /drivers
parent822af351ad2babc7d99033361a5fcacd30f6bc78 (diff)
downloadu-boot-imx-d98c0885ad617fccf21e7c26ef8cb728fbfb2459.zip
u-boot-imx-d98c0885ad617fccf21e7c26ef8cb728fbfb2459.tar.gz
u-boot-imx-d98c0885ad617fccf21e7c26ef8cb728fbfb2459.tar.bz2
USB: (Another) delay for crappy USB keys.
Some USB keys are slow in giving back an answer when the Root HUB enables power lines. Signed-off-by: Rodolfo Giometti <giometti@linux.it>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb_ohci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c
index 1c3f622..70cb6a3 100644
--- a/drivers/usb_ohci.c
+++ b/drivers/usb_ohci.c
@@ -1169,7 +1169,9 @@ pkt_print(dev, pipe, buffer, transfer_len, cmd, "SUB(rh)", usb_pipein(pipe));
WR_RH_PORTSTAT (RH_PS_PRS);
OK (0);
case (RH_PORT_POWER):
- WR_RH_PORTSTAT (RH_PS_PPS ); OK (0);
+ WR_RH_PORTSTAT (RH_PS_PPS );
+ wait_ms(100);
+ OK (0);
case (RH_PORT_ENABLE): /* BUG IN HUP CODE *********/
if (RD_RH_PORTSTAT & RH_PS_CCS)
WR_RH_PORTSTAT (RH_PS_PES );