dect
/
linux-2.6
Archived
13
0
Fork 0

[SCSI] libsas: Accept SAM_GOOD for ATAPI devices in sas_ata_task_done

A sas_task sent to an ATAPI devices returns SAM_GOOD if successful.
Therefore, we should treat this the same way we treat ATA commands
that succeed.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Darrick J. Wong 2007-01-30 01:18:49 -08:00 committed by James Bottomley
parent 38691593cd
commit d97db63f8d
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ static void sas_ata_task_done(struct sas_task *task)
dev = qc->ap->private_data;
spin_lock_irqsave(dev->sata_dev.ap->lock, flags);
if (stat->stat == SAS_PROTO_RESPONSE) {
if (stat->stat == SAS_PROTO_RESPONSE || stat->stat == SAM_GOOD) {
ata_tf_from_fis(resp->ending_fis, &dev->sata_dev.tf);
qc->err_mask |= ac_err_mask(dev->sata_dev.tf.command);
dev->sata_dev.sstatus = resp->sstatus;