[PATCH] ahci: convert to new probing mechanism and add hotplug support
authorTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:28:18 +0000 (18:28 +0900)
committerTejun Heo <htejun@gmail.com>
Wed, 31 May 2006 09:28:18 +0000 (18:28 +0900)
commit4296971dd36e2c2deae0826305f591480223af88
treebd3cce15c252cea18869b39da231d542a6255e59
parente573890b00426189e1e223967a2c46fb758bf06e
[PATCH] ahci: convert to new probing mechanism and add hotplug support

Convert to new probing mechanism and add hotplug support by enabling
PORT_IRQ_PHYRDY, marking ehi for hotplug and scheduling EH on
CONNECT/PHYRDY interrupts.

Unfortunately, ahci cannot reliably wait for the first D2H FIS after
hotplug.  It sometimes succeeds but times out more often than not, so
ATA_FLAG_SKIP_D2H_BSY is used.

This patch also fixes ahci_hardreset() such that D2H Register FIS RX
area is cleared before issuing COMRESET.  Without this,
ata_busy_sleep() after COMRESET might prematually finish if the
previous TF contains DRDY && !BSY.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/scsi/ahci.c