Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62690
b: refs/heads/master
c: bdab4e8
h: refs/heads/master
v: v3
  • Loading branch information
Darrick J. Wong authored and James Bottomley committed Jul 18, 2007
1 parent 344ca2e commit dab5c0a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 797f49de3d95d964a360bcf0167cc20e249bb90b
refs/heads/master: bdab4e877819cc8b682797901c8b37567fec3c5e
11 changes: 9 additions & 2 deletions trunk/drivers/scsi/libsas/sas_scsi_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,8 +828,14 @@ static unsigned int sas_ata_qc_issue(struct ata_queued_cmd *qc)
task->ata_task.retry_count = 1;
task->task_state_flags = SAS_TASK_STATE_PENDING;

if (qc->tf.protocol == ATA_PROT_DMA)
switch (qc->tf.protocol) {
case ATA_PROT_NCQ:
task->ata_task.use_ncq = 1;
/* fall through */
case ATA_PROT_DMA:
task->ata_task.dma_xfer = 1;
break;
}

if (sas_ha->lldd_max_execute_num < 2)
res = i->dft->lldd_execute_task(task, 1, GFP_ATOMIC);
Expand Down Expand Up @@ -962,7 +968,7 @@ static struct ata_port_operations sas_sata_ops = {

static struct ata_port_info sata_port_info = {
.flags = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | ATA_FLAG_SATA_RESET |
ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA,
ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA | ATA_FLAG_NCQ,
.pio_mask = 0x1f, /* PIO0-4 */
.mwdma_mask = 0x07, /* MWDMA0-2 */
.udma_mask = ATA_UDMA6,
Expand Down Expand Up @@ -1031,6 +1037,7 @@ int sas_target_alloc(struct scsi_target *starget)

ap->private_data = found_dev;
ap->cbl = ATA_CBL_SATA;
ap->scsi_host = shost;
found_dev->sata_dev.ap = ap;
}

Expand Down

0 comments on commit dab5c0a

Please sign in to comment.