mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
[libata] Disable FUA
Until problems are sorted.
This commit is contained in:
parent
e95a9ec1bb
commit
c3c013a2c2
@ -82,6 +82,10 @@ int atapi_enabled = 0;
|
||||
module_param(atapi_enabled, int, 0444);
|
||||
MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices (0=off, 1=on)");
|
||||
|
||||
int libata_fua = 0;
|
||||
module_param_named(fua, libata_fua, int, 0444);
|
||||
MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on)");
|
||||
|
||||
MODULE_AUTHOR("Jeff Garzik");
|
||||
MODULE_DESCRIPTION("Library module for ATA devices");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
@ -1708,6 +1708,8 @@ static int ata_dev_supports_fua(u16 *id)
|
||||
{
|
||||
unsigned char model[41], fw[9];
|
||||
|
||||
if (!libata_fua)
|
||||
return 0;
|
||||
if (!ata_id_has_fua(id))
|
||||
return 0;
|
||||
|
||||
|
@ -41,6 +41,7 @@ struct ata_scsi_args {
|
||||
|
||||
/* libata-core.c */
|
||||
extern int atapi_enabled;
|
||||
extern int libata_fua;
|
||||
extern struct ata_queued_cmd *ata_qc_new_init(struct ata_port *ap,
|
||||
struct ata_device *dev);
|
||||
extern int ata_rwcmd_protocol(struct ata_queued_cmd *qc);
|
||||
|
Loading…
Reference in New Issue
Block a user