kernel - Fix apparent timing race in early usb keyboard polling code
authorMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Apr 2011 17:58:32 +0000 (10:58 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Fri, 15 Apr 2011 18:03:36 +0000 (11:03 -0700)
commitdf08e50913de8190c0acbf96983cc70bda10faeb
tree9016e66205c4ec32e93132747af7645651bcc8bc
parent72d65b30da745e6b44d2e3cc7814419af3611163
kernel - Fix apparent timing race in early usb keyboard polling code

* Fix an apparent timing race where a USB command does not complete
  prior to the poll issued with the command.  Perform another poll
  in a loop to deal with it.

* Problem appears to occur w/ohci's early poll prior to ehci attachment.

Reported-by: Antonio Huete Jimenez <ahuete.devel@gmail.com>
sys/bus/usb/usbdi.c