aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/libsas/sas_ata.c')
-rw-r--r--drivers/scsi/libsas/sas_ata.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c
index 8c496b56556c..042153cbbde1 100644
--- a/drivers/scsi/libsas/sas_ata.c
+++ b/drivers/scsi/libsas/sas_ata.c
@@ -71,7 +71,7 @@ static enum ata_completion_errors sas_to_ata_err(struct task_status_struct *ts)
71 case SAS_SG_ERR: 71 case SAS_SG_ERR:
72 return AC_ERR_INVALID; 72 return AC_ERR_INVALID;
73 73
74 case SAM_CHECK_COND: 74 case SAM_STAT_CHECK_CONDITION:
75 case SAS_OPEN_TO: 75 case SAS_OPEN_TO:
76 case SAS_OPEN_REJECT: 76 case SAS_OPEN_REJECT:
77 SAS_DPRINTK("%s: Saw error %d. What to do?\n", 77 SAS_DPRINTK("%s: Saw error %d. What to do?\n",
@@ -107,7 +107,7 @@ static void sas_ata_task_done(struct sas_task *task)
107 sas_ha = dev->port->ha; 107 sas_ha = dev->port->ha;
108 108
109 spin_lock_irqsave(dev->sata_dev.ap->lock, flags); 109 spin_lock_irqsave(dev->sata_dev.ap->lock, flags);
110 if (stat->stat == SAS_PROTO_RESPONSE || stat->stat == SAM_GOOD) { 110 if (stat->stat == SAS_PROTO_RESPONSE || stat->stat == SAM_STAT_GOOD) {
111 ata_tf_from_fis(resp->ending_fis, &dev->sata_dev.tf); 111 ata_tf_from_fis(resp->ending_fis, &dev->sata_dev.tf);
112 qc->err_mask |= ac_err_mask(dev->sata_dev.tf.command); 112 qc->err_mask |= ac_err_mask(dev->sata_dev.tf.command);
113 dev->sata_dev.sstatus = resp->sstatus; 113 dev->sata_dev.sstatus = resp->sstatus;
@@ -511,12 +511,12 @@ static int sas_execute_task(struct sas_task *task, void *buffer, int size,
511 goto ex_err; 511 goto ex_err;
512 } 512 }
513 } 513 }
514 if (task->task_status.stat == SAM_BUSY || 514 if (task->task_status.stat == SAM_STAT_BUSY ||
515 task->task_status.stat == SAM_TASK_SET_FULL || 515 task->task_status.stat == SAM_STAT_TASK_SET_FULL ||
516 task->task_status.stat == SAS_QUEUE_FULL) { 516 task->task_status.stat == SAS_QUEUE_FULL) {
517 SAS_DPRINTK("task: q busy, sleeping...\n"); 517 SAS_DPRINTK("task: q busy, sleeping...\n");
518 schedule_timeout_interruptible(HZ); 518 schedule_timeout_interruptible(HZ);
519 } else if (task->task_status.stat == SAM_CHECK_COND) { 519 } else if (task->task_status.stat == SAM_STAT_CHECK_CONDITION) {
520 struct scsi_sense_hdr shdr; 520 struct scsi_sense_hdr shdr;
521 521
522 if (!scsi_normalize_sense(ts->buf, ts->buf_valid_size, 522 if (!scsi_normalize_sense(ts->buf, ts->buf_valid_size,
@@ -549,7 +549,7 @@ static int sas_execute_task(struct sas_task *task, void *buffer, int size,
549 shdr.asc, shdr.ascq); 549 shdr.asc, shdr.ascq);
550 } 550 }
551 } else if (task->task_status.resp != SAS_TASK_COMPLETE || 551 } else if (task->task_status.resp != SAS_TASK_COMPLETE ||
552 task->task_status.stat != SAM_GOOD) { 552 task->task_status.stat != SAM_STAT_GOOD) {
553 SAS_DPRINTK("task finished with resp:0x%x, " 553 SAS_DPRINTK("task finished with resp:0x%x, "
554 "stat:0x%x\n", 554 "stat:0x%x\n",
555 task->task_status.resp, 555 task->task_status.resp,