diff options
author | Hannes Reinecke <hare@suse.de> | 2007-02-07 12:19:37 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-02-07 12:19:37 -0500 |
commit | e3a59b4d9378522479609042836ae930305a67fe (patch) | |
tree | 1dd41aefac4d7f370dd3798818c2ca36c654fe7c /drivers/ide/ide-probe.c | |
parent | 78281c5350029e3fa21758d6db9b45ffc7bf72a1 (diff) |
ACPI support for IDE devices
This patch implements ACPI integration for generic IDE devices.
The ACPI spec mandates that some methods are called during suspend and
resume. And consequently there most modern Laptops cannot resume
properly without it.
According to the spec, we should call '_GTM' (Get Timing) upon suspend
to store the current IDE adapter settings.
Upon resume we should call '_STM' (Set Timing) to initialize the
adapter with the stored settings; afterwards '_GTF' (Get Taskfile)
should be called which returns a buffer with some IDE initialisation
commands. Those commands should be passed to the drive.
There are two module params which control the behaviour of this patch:
'ide=noacpi'
Do not call any ACPI methods (Disables any ACPI method calls)
'ide=acpigtf'
Enable execution of _GTF methods upon resume.
Has no effect if 'ide=noacpi' is set.
'ide=acpionboot'
Enable execution of ACPI methods during boot.
This might be required on some machines if 'ide=acpigtf' is
selected as some machines modify the _GTF information
depending on the drive identification passed down with _STM.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-probe.c')
-rw-r--r-- | drivers/ide/ide-probe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ide/ide-probe.c b/drivers/ide/ide-probe.c index 5a5c565a32a8..176bbc850d6b 100644 --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c | |||
@@ -1384,6 +1384,9 @@ static int hwif_init(ide_hwif_t *hwif) | |||
1384 | 1384 | ||
1385 | done: | 1385 | done: |
1386 | init_gendisk(hwif); | 1386 | init_gendisk(hwif); |
1387 | |||
1388 | ide_acpi_init(hwif); | ||
1389 | |||
1387 | hwif->present = 1; /* success */ | 1390 | hwif->present = 1; /* success */ |
1388 | return 1; | 1391 | return 1; |
1389 | 1392 | ||