AHCI - Improve hot-plug sequencing.
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Jun 2009 09:30:21 +0000 (02:30 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 9 Jun 2009 09:30:21 +0000 (02:30 -0700)
commit22181ab7f0b0036d75f4dbb892841b470550c527
treef2f06ee7aaf6636c310fd0de759068900940749e
parent17eab71eccd5f3dda84b5d70ba6e7156732915c1
AHCI - Improve hot-plug sequencing.

* Properly either fail or restart outstanding commands when we get a PCS
  interrupt, based on the event we determined to have occurred.

  NOTE: A PCS event stops command processing, so at the very least command
  processing must be restarted by cycling the port.

* Reset the port's ap->ap_state when a hotplug-insertion is detected, so
  the port has a chance to get out of its failed state.
sys/dev/disk/ahci/ahci.c