aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/sleep.c
diff options
context:
space:
mode:
authorLin Ming <ming.m.lin@intel.com>2012-06-25 04:13:06 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-06-29 11:38:13 -0400
commit3bd46600a7a7e938c54df8cdbac9910668c7dfb0 (patch)
tree72272f24842f7487b918a47c6e7244e92cad9ae4 /drivers/acpi/sleep.c
parentfebe53ba6b781862c12686c7ea1972bdedee457a (diff)
libata-acpi: add ata port runtime D3Cold support
ATA port may support runtime D3Cold state, for example, Zero-power ODD case. This patch adds wakeup notifier and enable/disable run_wake during supend/resume. Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/acpi/sleep.c')
-rw-r--r--drivers/acpi/sleep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index 88561029cca8..1784cb30e7cf 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -795,6 +795,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p)
795 *d_min_p = d_min; 795 *d_min_p = d_min;
796 return d_max; 796 return d_max;
797} 797}
798EXPORT_SYMBOL(acpi_pm_device_sleep_state);
798#endif /* CONFIG_PM */ 799#endif /* CONFIG_PM */
799 800
800#ifdef CONFIG_PM_SLEEP 801#ifdef CONFIG_PM_SLEEP
@@ -831,6 +832,7 @@ int acpi_pm_device_run_wake(struct device *phys_dev, bool enable)
831 832
832 return 0; 833 return 0;
833} 834}
835EXPORT_SYMBOL(acpi_pm_device_run_wake);
834 836
835/** 837/**
836 * acpi_pm_device_sleep_wake - enable or disable the system wake-up 838 * acpi_pm_device_sleep_wake - enable or disable the system wake-up