diff options
author | Kristen Carlson Accardi <kristen.c.accardi@intel.com> | 2006-09-28 14:29:01 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-16 13:32:41 -0500 |
commit | 11ef697b37e3c85ce1ac21f7711babf1f5b12784 (patch) | |
tree | 7b118d54bc8fc24ca8cbc626d603013d07ed8c2a /drivers/ata/libata-core.c | |
parent | 8a03d9a498eaf02c8a118752050a5154852c13bf (diff) |
[PATCH] libata: ACPI and _GTF support
_GTF is an acpi method that is used to reinitialize the drive. It returns
a task file containing ata commands that are sent back to the drive to restore
it to boot up defaults.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
(cherry picked from 9c69cab24b51a89664f4c0dfaf8a436d32117624 commit)
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 2cf8251728d2..785bf50488e9 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -93,6 +93,10 @@ static int ata_probe_timeout = ATA_TMOUT_INTERNAL / HZ; | |||
93 | module_param(ata_probe_timeout, int, 0444); | 93 | module_param(ata_probe_timeout, int, 0444); |
94 | MODULE_PARM_DESC(ata_probe_timeout, "Set ATA probing timeout (seconds)"); | 94 | MODULE_PARM_DESC(ata_probe_timeout, "Set ATA probing timeout (seconds)"); |
95 | 95 | ||
96 | int noacpi; | ||
97 | module_param(noacpi, int, 0444); | ||
98 | MODULE_PARM_DESC(noacpi, "Disables the use of ACPI in suspend/resume when set"); | ||
99 | |||
96 | MODULE_AUTHOR("Jeff Garzik"); | 100 | MODULE_AUTHOR("Jeff Garzik"); |
97 | MODULE_DESCRIPTION("Library module for ATA devices"); | 101 | MODULE_DESCRIPTION("Library module for ATA devices"); |
98 | MODULE_LICENSE("GPL"); | 102 | MODULE_LICENSE("GPL"); |
@@ -1778,6 +1782,9 @@ int ata_bus_probe(struct ata_port *ap) | |||
1778 | /* reset and determine device classes */ | 1782 | /* reset and determine device classes */ |
1779 | ap->ops->phy_reset(ap); | 1783 | ap->ops->phy_reset(ap); |
1780 | 1784 | ||
1785 | /* retrieve and execute the ATA task file of _GTF */ | ||
1786 | ata_acpi_exec_tfs(ap); | ||
1787 | |||
1781 | for (i = 0; i < ATA_MAX_DEVICES; i++) { | 1788 | for (i = 0; i < ATA_MAX_DEVICES; i++) { |
1782 | dev = &ap->device[i]; | 1789 | dev = &ap->device[i]; |
1783 | 1790 | ||