aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
diff options
context:
space:
mode:
authorAlbert Lee <albertcc@tw.ibm.com>2006-04-03 22:57:18 -0400
committerJeff Garzik <jeff@garzik.org>2006-04-04 08:44:24 -0400
commit95de719adc94392a95c3c4d0a2d6b8b1ea39d236 (patch)
treed8196f39ca64a2c727ff6eff94b28d10013c6564 /drivers/scsi/libata-scsi.c
parentc16226a1c75042bfdc50bd2921d5919f6267ba51 (diff)
[PATCH] libata: convert ATAPI_ENABLE_DMADIR to module parameter
Convert the ATAPI_ENABLE_DMADIR compile time option needed by some SATA-PATA bridge to runtime module parameter. Signed-off-by: Albert Lee <albertcc@tw.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r--drivers/scsi/libata-scsi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 745fc263feeb..c9c001490293 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -2163,11 +2163,9 @@ static unsigned int atapi_xlat(struct ata_queued_cmd *qc, const u8 *scsicmd)
2163 qc->tf.protocol = ATA_PROT_ATAPI_DMA; 2163 qc->tf.protocol = ATA_PROT_ATAPI_DMA;
2164 qc->tf.feature |= ATAPI_PKT_DMA; 2164 qc->tf.feature |= ATAPI_PKT_DMA;
2165 2165
2166#ifdef ATAPI_ENABLE_DMADIR 2166 if (atapi_dmadir && (cmd->sc_data_direction != DMA_TO_DEVICE))
2167 /* some SATA bridges need us to indicate data xfer direction */ 2167 /* some SATA bridges need us to indicate data xfer direction */
2168 if (cmd->sc_data_direction != DMA_TO_DEVICE)
2169 qc->tf.feature |= ATAPI_DMADIR; 2168 qc->tf.feature |= ATAPI_DMADIR;
2170#endif
2171 } 2169 }
2172 2170
2173 qc->nbytes = cmd->bufflen; 2171 qc->nbytes = cmd->bufflen;