diff options
author | Lin Ming <ming.m.lin@intel.com> | 2012-06-25 04:13:06 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-06-29 11:38:13 -0400 |
commit | 3bd46600a7a7e938c54df8cdbac9910668c7dfb0 (patch) | |
tree | 72272f24842f7487b918a47c6e7244e92cad9ae4 /drivers/ata/libata.h | |
parent | febe53ba6b781862c12686c7ea1972bdedee457a (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/ata/libata.h')
-rw-r--r-- | drivers/ata/libata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata.h b/drivers/ata/libata.h index b0d5294982eb..44a7939b5bb6 100644 --- a/drivers/ata/libata.h +++ b/drivers/ata/libata.h | |||
@@ -120,6 +120,8 @@ extern void ata_acpi_on_disable(struct ata_device *dev); | |||
120 | extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state); | 120 | extern void ata_acpi_set_state(struct ata_port *ap, pm_message_t state); |
121 | extern int ata_acpi_register(void); | 121 | extern int ata_acpi_register(void); |
122 | extern void ata_acpi_unregister(void); | 122 | extern void ata_acpi_unregister(void); |
123 | extern void ata_acpi_bind(struct ata_device *dev); | ||
124 | extern void ata_acpi_unbind(struct ata_device *dev); | ||
123 | #else | 125 | #else |
124 | static inline void ata_acpi_dissociate(struct ata_host *host) { } | 126 | static inline void ata_acpi_dissociate(struct ata_host *host) { } |
125 | static inline int ata_acpi_on_suspend(struct ata_port *ap) { return 0; } | 127 | static inline int ata_acpi_on_suspend(struct ata_port *ap) { return 0; } |
@@ -130,6 +132,8 @@ static inline void ata_acpi_set_state(struct ata_port *ap, | |||
130 | pm_message_t state) { } | 132 | pm_message_t state) { } |
131 | static inline int ata_acpi_register(void) { return 0; } | 133 | static inline int ata_acpi_register(void) { return 0; } |
132 | static void ata_acpi_unregister(void) { } | 134 | static void ata_acpi_unregister(void) { } |
135 | static void ata_acpi_bind(struct ata_device *dev) { } | ||
136 | static void ata_acpi_unbind(struct ata_device *dev) { } | ||
133 | #endif | 137 | #endif |
134 | 138 | ||
135 | /* libata-scsi.c */ | 139 | /* libata-scsi.c */ |