diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-09 10:49:34 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-09 10:49:34 -0400 |
commit | 422fa08e538b649a9b80258950d2f8a202f45f19 (patch) | |
tree | 85fd3f5f5e47783622157c0aa84d7c19b7a47eeb /drivers | |
parent | ffe75ef650e1aec26a84bd82a620b5e27df9ed34 (diff) |
[libata passthru] update ATAPI completion for new error handling
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-scsi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c index 698203bf4f69..617534b7a25e 100644 --- a/drivers/scsi/libata-scsi.c +++ b/drivers/scsi/libata-scsi.c | |||
@@ -1933,7 +1933,12 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat) | |||
1933 | VPRINTK("ENTER, drv_stat == 0x%x\n", drv_stat); | 1933 | VPRINTK("ENTER, drv_stat == 0x%x\n", drv_stat); |
1934 | 1934 | ||
1935 | if (unlikely(drv_stat & (ATA_BUSY | ATA_DRQ))) | 1935 | if (unlikely(drv_stat & (ATA_BUSY | ATA_DRQ))) |
1936 | ata_to_sense_error(qc, drv_stat); | 1936 | /* FIXME: not quite right; we don't want the |
1937 | * translation of taskfile registers into | ||
1938 | * a sense descriptors, since that's only | ||
1939 | * correct for ATA, not ATAPI | ||
1940 | */ | ||
1941 | ata_gen_ata_desc_sense(qc); | ||
1937 | 1942 | ||
1938 | else if (unlikely(drv_stat & ATA_ERR)) { | 1943 | else if (unlikely(drv_stat & ATA_ERR)) { |
1939 | DPRINTK("request check condition\n"); | 1944 | DPRINTK("request check condition\n"); |