diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libata-core.c | 4 | ||||
-rw-r--r-- | drivers/scsi/libata-scsi.c | 6 | ||||
-rw-r--r-- | drivers/scsi/libata.h | 1 |
3 files changed, 7 insertions, 4 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 966be3034bf0..3387fe35c54f 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -76,6 +76,10 @@ int atapi_enabled = 1; | |||
76 | module_param(atapi_enabled, int, 0444); | 76 | module_param(atapi_enabled, int, 0444); |
77 | MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices (0=off, 1=on)"); | 77 | MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices (0=off, 1=on)"); |
78 | 78 | ||
79 | int atapi_dmadir = 0; | ||
80 | module_param(atapi_dmadir, int, 0444); | ||
81 | MODULE_PARM_DESC(atapi_dmadir, "Enable ATAPI DMADIR bridge support (0=off, 1=on)"); | ||
82 | |||
79 | int libata_fua = 0; | 83 | int libata_fua = 0; |
80 | module_param_named(fua, libata_fua, int, 0444); | 84 | module_param_named(fua, libata_fua, int, 0444); |
81 | MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on)"); | 85 | MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on)"); |
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; |
diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h index e3bd1ddb5387..652c08e3808e 100644 --- a/drivers/scsi/libata.h +++ b/drivers/scsi/libata.h | |||
@@ -41,6 +41,7 @@ struct ata_scsi_args { | |||
41 | 41 | ||
42 | /* libata-core.c */ | 42 | /* libata-core.c */ |
43 | extern int atapi_enabled; | 43 | extern int atapi_enabled; |
44 | extern int atapi_dmadir; | ||
44 | extern int libata_fua; | 45 | extern int libata_fua; |
45 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap, | 46 | extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap, |
46 | struct ata_device *dev); | 47 | struct ata_device *dev); |