]> err.no Git - linux-2.6/commit
ide: hook ACPI _PSx method to IDE power on/off
authorShaohua Li <shaohua.li@intel.com>
Thu, 11 Oct 2007 21:53:58 +0000 (23:53 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Thu, 11 Oct 2007 21:53:58 +0000 (23:53 +0200)
commit5e32132befa5d2cefadf3141fee0bbb40cd11f0e
tree7bf2002e49b169d24b87a8fe71364875e04d1e90
parent8cb1f567f4c0a2fde9cbf77c2af888a28cab3423
ide: hook ACPI _PSx method to IDE power on/off

ACPI spec defines the sequence of IDE power on/off:
Powering down:
Call _GTM.
Power down drive (calls _PS3 method and turns off power planes).
Powering up:
Power up drive (calls _PS0 method if present and turns on power planes).
Call _STM passing info from _GTM (possibly modified), with ID data from
each drive.
Initialize the channel.
May modify the results of _GTF.
For each drive:
Call _GTF.
Execute task file (possibly modified).
This patch adds the missed _PS0/_PS3 methods call.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/acpi/bus.c
drivers/ide/ide-acpi.c
drivers/ide/ide.c
include/linux/ide.h