diff options
author | Alan Cox <alan@redhat.com> | 2009-03-24 06:23:46 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2009-03-24 22:52:39 -0400 |
commit | c96f1732e25362d10ee7bcac1df8412a2e6b7d23 (patch) | |
tree | 66e24eddb174d6751579ec5952f72cbbac0fb038 /drivers/ata/pdc_adma.c | |
parent | 3d47aa8e7e7b2aa09256590388aa8dddc79280f9 (diff) |
[libata] Improve timeout handling
On a timeout call a device specific handler early in the recovery so that
we can complete and process successful commands which timed out due to IRQ
loss or the like rather more elegantly.
[Revised to exclude the timeout handling on a few devices that inherit from
SFF but are not SFF enough to use the default timeout handler]
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pdc_adma.c')
-rw-r--r-- | drivers/ata/pdc_adma.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/pdc_adma.c b/drivers/ata/pdc_adma.c index c509c206a459..39588178d028 100644 --- a/drivers/ata/pdc_adma.c +++ b/drivers/ata/pdc_adma.c | |||
@@ -148,6 +148,8 @@ static struct scsi_host_template adma_ata_sht = { | |||
148 | static struct ata_port_operations adma_ata_ops = { | 148 | static struct ata_port_operations adma_ata_ops = { |
149 | .inherits = &ata_sff_port_ops, | 149 | .inherits = &ata_sff_port_ops, |
150 | 150 | ||
151 | .lost_interrupt = ATA_OP_NULL, | ||
152 | |||
151 | .check_atapi_dma = adma_check_atapi_dma, | 153 | .check_atapi_dma = adma_check_atapi_dma, |
152 | .qc_prep = adma_qc_prep, | 154 | .qc_prep = adma_qc_prep, |
153 | .qc_issue = adma_qc_issue, | 155 | .qc_issue = adma_qc_issue, |