aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_qstor.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-30 04:50:22 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-10-30 04:50:22 -0500
commit054ee8fd39f1b5d50e803f126b63f400d631eea4 (patch)
tree2819e388f853de88e09635de8e38017b563069bc /drivers/scsi/sata_qstor.c
parentf0612bbc41f65f5a684f69d714a1a17a6f0f40c5 (diff)
parenta7dac447bb9cef27d4d29cdf63e2d7809c50b1f4 (diff)
Merge branch 'upstream'
Diffstat (limited to 'drivers/scsi/sata_qstor.c')
-rw-r--r--drivers/scsi/sata_qstor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/scsi/sata_qstor.c b/drivers/scsi/sata_qstor.c
index f2c599f08fa2..8c20229b01b4 100644
--- a/drivers/scsi/sata_qstor.c
+++ b/drivers/scsi/sata_qstor.c
@@ -402,11 +402,12 @@ static inline unsigned int qs_intr_pkt(struct ata_host_set *host_set)
402 qc = ata_qc_from_tag(ap, ap->active_tag); 402 qc = ata_qc_from_tag(ap, ap->active_tag);
403 if (qc && (!(qc->tf.ctl & ATA_NIEN))) { 403 if (qc && (!(qc->tf.ctl & ATA_NIEN))) {
404 switch (sHST) { 404 switch (sHST) {
405 case 0: /* sucessful CPB */ 405 case 0: /* successful CPB */
406 case 3: /* device error */ 406 case 3: /* device error */
407 pp->state = qs_state_idle; 407 pp->state = qs_state_idle;
408 qs_enter_reg_mode(qc->ap); 408 qs_enter_reg_mode(qc->ap);
409 ata_qc_complete(qc, sDST); 409 ata_qc_complete(qc,
410 ac_err_mask(sDST));
410 break; 411 break;
411 default: 412 default:
412 break; 413 break;
@@ -443,7 +444,7 @@ static inline unsigned int qs_intr_mmio(struct ata_host_set *host_set)
443 444
444 /* complete taskfile transaction */ 445 /* complete taskfile transaction */
445 pp->state = qs_state_idle; 446 pp->state = qs_state_idle;
446 ata_qc_complete(qc, status); 447 ata_qc_complete(qc, ac_err_mask(status));
447 handled = 1; 448 handled = 1;
448 } 449 }
449 } 450 }