kernel - Add mandatory config hooks delay
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Apr 2014 23:49:12 +0000 (16:49 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Apr 2014 23:49:12 +0000 (16:49 -0700)
commit71ed69eec97cfbadb43d16fcf5aabb827026415d
tree4465aefd981cabcaf20abf4abe01e0f6d6bd01d1
parentb923ccfd3d1d3fe59b76a748cf15250c50b988d0
kernel - Add mandatory config hooks delay

* Add a mandatory 5-second minimum delay for config hooks.

  This fixes an issue with U4B's very late port probing.  Essentially the
  other disk devices (aka AHCI) can completely finish probing and attaching
  devices before USB even knows there's a stick in a port.  The result is
  that the run_interrupt_driven_config_hooks() routine thinks that all
  disk devices have attached and does not wait at all.

  In addition, usb devices tend to probe near dead last, making the problem
  worse.  The kernel tries to mount the root device the instant after
  the usb pci probe.

* This is a hack, but to really fix it requires a great deal of surgery in
  the U4B USB stack.
sys/kern/subr_autoconf.c