diff options
author | Mark Lord <liml@rtr.ca> | 2007-08-07 12:08:45 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-12 14:55:32 -0400 |
commit | baf4fdfaaf5cb9f4fb1c341c8cef60a64e580582 (patch) | |
tree | f26293a36958a6813bf1353cb07afd3d6be6aa0d /drivers/ata/libata-core.c | |
parent | 4cc980b34b2a25f600576dcd11de388bc44e1ebd (diff) |
libata: add support for ATA_16 on ATAPI
Add support for issuing ATA_16 passthru commands to ATAPI devices
managed by libata. It requires the previous CDB length fix patch.
A boot/module parameter, "atapi_passthru16=0" can be used to globally
disable this feature, if ever desired.
tj: restructured __ata_scsi_queuecmd() according to Jeff's suggestion.
Signed-off-by: Mark Lord <liml@rtr.ca>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index fc0679370638..75ccf46972d8 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -86,6 +86,10 @@ int atapi_dmadir = 0; | |||
86 | module_param(atapi_dmadir, int, 0444); | 86 | module_param(atapi_dmadir, int, 0444); |
87 | MODULE_PARM_DESC(atapi_dmadir, "Enable ATAPI DMADIR bridge support (0=off, 1=on)"); | 87 | MODULE_PARM_DESC(atapi_dmadir, "Enable ATAPI DMADIR bridge support (0=off, 1=on)"); |
88 | 88 | ||
89 | int atapi_passthru16 = 1; | ||
90 | module_param(atapi_passthru16, int, 0444); | ||
91 | MODULE_PARM_DESC(atapi_passthru16, "Enable ATA_16 passthru for ATAPI devices; on by default (0=off, 1=on)"); | ||
92 | |||
89 | int libata_fua = 0; | 93 | int libata_fua = 0; |
90 | module_param_named(fua, libata_fua, int, 0444); | 94 | module_param_named(fua, libata_fua, int, 0444); |
91 | MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on)"); | 95 | MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on)"); |