Skip to content

Commit

Permalink
[libata passthru] update ATAPI completion for new error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik committed Oct 9, 2005
1 parent ffe75ef commit 422fa08
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,12 @@ static int atapi_qc_complete(struct ata_queued_cmd *qc, u8 drv_stat)
VPRINTK("ENTER, drv_stat == 0x%x\n", drv_stat);

if (unlikely(drv_stat & (ATA_BUSY | ATA_DRQ)))
ata_to_sense_error(qc, drv_stat);
/* FIXME: not quite right; we don't want the
* translation of taskfile registers into
* a sense descriptors, since that's only
* correct for ATA, not ATAPI
*/
ata_gen_ata_desc_sense(qc);

else if (unlikely(drv_stat & ATA_ERR)) {
DPRINTK("request check condition\n");
Expand Down

0 comments on commit 422fa08

Please sign in to comment.