Add hotplug support by enabling PORT_IRQ_PHYRDY. Standard EH will do the right thing and schedule probe after analyzing SError. Signed-off-by: Tejun Heo <htejun@xxxxxxxxx> --- drivers/scsi/ahci.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) ded75cede39c99d38376691e952327cff47bb4f6 diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c index 7f478c4..975618e 100644 --- a/drivers/scsi/ahci.c +++ b/drivers/scsi/ahci.c @@ -135,6 +135,7 @@ enum { PORT_IRQ_FREEZE = PORT_IRQ_HBUS_ERR | PORT_IRQ_IF_ERR | PORT_IRQ_CONNECT | + PORT_IRQ_PHYRDY | PORT_IRQ_UNK_FIS, PORT_IRQ_ERROR = PORT_IRQ_FREEZE | PORT_IRQ_TF_ERR | @@ -801,10 +802,12 @@ static unsigned int ahci_eh_autopsy(stru desc_sz -= rc; } - if (irq_stat & PORT_IRQ_CONNECT) { + if (irq_stat & (PORT_IRQ_CONNECT | PORT_IRQ_PHYRDY)) { err_mask |= AC_ERR_ATA_BUS; action |= ATA_PORT_SOFTRESET; - rc = scnprintf(desc, desc_sz, ", connection status changed"); + rc = scnprintf(desc, desc_sz, ", %s", + irq_stat & PORT_IRQ_CONNECT ? + "connection status changed" : "PHY RDY changed"); desc += rc; desc_sz -= rc; } -- 1.2.4 - : send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html