diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-12-06 04:52:48 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-06 04:52:48 -0500 |
commit | 701db69d6647f61e4660c9102d7f2fd5dffc203d (patch) | |
tree | e3ebe94f72b4bbdfad608d77d7b11719022b8c9b /drivers/scsi/sata_qstor.c | |
parent | 6cf5bcaaf9a92225017f7a3f1a630f6b5147ad4a (diff) | |
parent | fe79e683ccdb29c13b3e0d18507474b4e2d9aab6 (diff) |
Merge branch 'upstream'
Diffstat (limited to 'drivers/scsi/sata_qstor.c')
-rw-r--r-- | drivers/scsi/sata_qstor.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/sata_qstor.c b/drivers/scsi/sata_qstor.c index 17a39ed62306..6367966941d6 100644 --- a/drivers/scsi/sata_qstor.c +++ b/drivers/scsi/sata_qstor.c | |||
@@ -170,7 +170,7 @@ static const struct ata_port_operations qs_ata_ops = { | |||
170 | .bmdma_status = qs_bmdma_status, | 170 | .bmdma_status = qs_bmdma_status, |
171 | }; | 171 | }; |
172 | 172 | ||
173 | static struct ata_port_info qs_port_info[] = { | 173 | static const struct ata_port_info qs_port_info[] = { |
174 | /* board_2068_idx */ | 174 | /* board_2068_idx */ |
175 | { | 175 | { |
176 | .sht = &qs_ata_sht, | 176 | .sht = &qs_ata_sht, |
@@ -408,8 +408,8 @@ static inline unsigned int qs_intr_pkt(struct ata_host_set *host_set) | |||
408 | case 3: /* device error */ | 408 | case 3: /* device error */ |
409 | pp->state = qs_state_idle; | 409 | pp->state = qs_state_idle; |
410 | qs_enter_reg_mode(qc->ap); | 410 | qs_enter_reg_mode(qc->ap); |
411 | ata_qc_complete(qc, | 411 | qc->err_mask |= ac_err_mask(sDST); |
412 | ac_err_mask(sDST)); | 412 | ata_qc_complete(qc); |
413 | break; | 413 | break; |
414 | default: | 414 | default: |
415 | break; | 415 | break; |
@@ -446,7 +446,8 @@ static inline unsigned int qs_intr_mmio(struct ata_host_set *host_set) | |||
446 | 446 | ||
447 | /* complete taskfile transaction */ | 447 | /* complete taskfile transaction */ |
448 | pp->state = qs_state_idle; | 448 | pp->state = qs_state_idle; |
449 | ata_qc_complete(qc, ac_err_mask(status)); | 449 | qc->err_mask |= ac_err_mask(status); |
450 | ata_qc_complete(qc); | ||
450 | handled = 1; | 451 | handled = 1; |
451 | } | 452 | } |
452 | } | 453 | } |