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>
This commit is contained in:
Rodolfo Giometti 2007-04-23 13:10:52 +02:00 committed by Markus Klotzbuecher
parent 822af351ad
commit d98c0885ad

View file

@ -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 );