Просмотр исходного кода

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>
Rodolfo Giometti 18 лет назад
Родитель
Сommit
d98c0885ad
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      drivers/usb_ohci.c

+ 3 - 1
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 );