diff options
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index ca4d208ddf3b..045a486a09ea 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -125,19 +125,19 @@ MODULE_PARM_DESC(force, "Force ATA configurations including cable type, link spe | |||
125 | 125 | ||
126 | static int atapi_enabled = 1; | 126 | static int atapi_enabled = 1; |
127 | module_param(atapi_enabled, int, 0444); | 127 | module_param(atapi_enabled, int, 0444); |
128 | MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices (0=off, 1=on)"); | 128 | MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices (0=off, 1=on [default])"); |
129 | 129 | ||
130 | static int atapi_dmadir = 0; | 130 | static int atapi_dmadir = 0; |
131 | module_param(atapi_dmadir, int, 0444); | 131 | module_param(atapi_dmadir, int, 0444); |
132 | MODULE_PARM_DESC(atapi_dmadir, "Enable ATAPI DMADIR bridge support (0=off, 1=on)"); | 132 | MODULE_PARM_DESC(atapi_dmadir, "Enable ATAPI DMADIR bridge support (0=off [default], 1=on)"); |
133 | 133 | ||
134 | int atapi_passthru16 = 1; | 134 | int atapi_passthru16 = 1; |
135 | module_param(atapi_passthru16, int, 0444); | 135 | module_param(atapi_passthru16, int, 0444); |
136 | MODULE_PARM_DESC(atapi_passthru16, "Enable ATA_16 passthru for ATAPI devices; on by default (0=off, 1=on)"); | 136 | MODULE_PARM_DESC(atapi_passthru16, "Enable ATA_16 passthru for ATAPI devices (0=off, 1=on [default])"); |
137 | 137 | ||
138 | int libata_fua = 0; | 138 | int libata_fua = 0; |
139 | module_param_named(fua, libata_fua, int, 0444); | 139 | module_param_named(fua, libata_fua, int, 0444); |
140 | MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on)"); | 140 | MODULE_PARM_DESC(fua, "FUA support (0=off [default], 1=on)"); |
141 | 141 | ||
142 | static int ata_ignore_hpa; | 142 | static int ata_ignore_hpa; |
143 | module_param_named(ignore_hpa, ata_ignore_hpa, int, 0644); | 143 | module_param_named(ignore_hpa, ata_ignore_hpa, int, 0644); |
@@ -153,11 +153,11 @@ MODULE_PARM_DESC(ata_probe_timeout, "Set ATA probing timeout (seconds)"); | |||
153 | 153 | ||
154 | int libata_noacpi = 0; | 154 | int libata_noacpi = 0; |
155 | module_param_named(noacpi, libata_noacpi, int, 0444); | 155 | module_param_named(noacpi, libata_noacpi, int, 0444); |
156 | MODULE_PARM_DESC(noacpi, "Disables the use of ACPI in probe/suspend/resume when set"); | 156 | MODULE_PARM_DESC(noacpi, "Disable the use of ACPI in probe/suspend/resume (0=off [default], 1=on)"); |
157 | 157 | ||
158 | int libata_allow_tpm = 0; | 158 | int libata_allow_tpm = 0; |
159 | module_param_named(allow_tpm, libata_allow_tpm, int, 0444); | 159 | module_param_named(allow_tpm, libata_allow_tpm, int, 0444); |
160 | MODULE_PARM_DESC(allow_tpm, "Permit the use of TPM commands"); | 160 | MODULE_PARM_DESC(allow_tpm, "Permit the use of TPM commands (0=off [default], 1=on)"); |
161 | 161 | ||
162 | MODULE_AUTHOR("Jeff Garzik"); | 162 | MODULE_AUTHOR("Jeff Garzik"); |
163 | MODULE_DESCRIPTION("Library module for ATA devices"); | 163 | MODULE_DESCRIPTION("Library module for ATA devices"); |
@@ -1993,11 +1993,17 @@ unsigned int ata_do_simple_cmd(struct ata_device *dev, u8 cmd) | |||
1993 | * Check if the current speed of the device requires IORDY. Used | 1993 | * Check if the current speed of the device requires IORDY. Used |
1994 | * by various controllers for chip configuration. | 1994 | * by various controllers for chip configuration. |
1995 | */ | 1995 | */ |
1996 | |||
1997 | unsigned int ata_pio_need_iordy(const struct ata_device *adev) | 1996 | unsigned int ata_pio_need_iordy(const struct ata_device *adev) |
1998 | { | 1997 | { |
1999 | /* Controller doesn't support IORDY. Probably a pointless check | 1998 | /* Don't set IORDY if we're preparing for reset. IORDY may |
2000 | as the caller should know this */ | 1999 | * lead to controller lock up on certain controllers if the |
2000 | * port is not occupied. See bko#11703 for details. | ||
2001 | */ | ||
2002 | if (adev->link->ap->pflags & ATA_PFLAG_RESETTING) | ||
2003 | return 0; | ||
2004 | /* Controller doesn't support IORDY. Probably a pointless | ||
2005 | * check as the caller should know this. | ||
2006 | */ | ||
2001 | if (adev->link->ap->flags & ATA_FLAG_NO_IORDY) | 2007 | if (adev->link->ap->flags & ATA_FLAG_NO_IORDY) |
2002 | return 0; | 2008 | return 0; |
2003 | /* CF spec. r4.1 Table 22 says no iordy on PIO5 and PIO6. */ | 2009 | /* CF spec. r4.1 Table 22 says no iordy on PIO5 and PIO6. */ |
@@ -2020,7 +2026,6 @@ unsigned int ata_pio_need_iordy(const struct ata_device *adev) | |||
2020 | * Compute the highest mode possible if we are not using iordy. Return | 2026 | * Compute the highest mode possible if we are not using iordy. Return |
2021 | * -1 if no iordy mode is available. | 2027 | * -1 if no iordy mode is available. |
2022 | */ | 2028 | */ |
2023 | |||
2024 | static u32 ata_pio_mask_no_iordy(const struct ata_device *adev) | 2029 | static u32 ata_pio_mask_no_iordy(const struct ata_device *adev) |
2025 | { | 2030 | { |
2026 | /* If we have no drive specific rule, then PIO 2 is non IORDY */ | 2031 | /* If we have no drive specific rule, then PIO 2 is non IORDY */ |