Thread (7 messages) flat view 7 messages, 4 authors, 2013-01-25

Re: [PATCH] libata: pm: differentiate system and runtime pm for ata port

From: Jeff Garzik <hidden>
Date: 2013-01-21 20:44:35
Also in: linux-acpi, linux-ide

On 08/28/2012 04:49 AM, Aaron Lu wrote:
For sata port, only runtime pm needs to be taken care of;
For IDE port, only system pm needs to be taken care of.
Currently, we use PMSG_SUSPEND for both system suspend and runtime
suspend and PMSG_ON for both system resume and runtime resume.

Change this by using PMSG_AUTO_SUSPEND for runtime suspend and
PMSG_AUTO_RESUME for runtime resume.

The ata_acpi_set_state is modified accordingly. And the sata case and
pata case is seperated for easy understanding.

Signed-off-by: Aaron Lu <redacted>
---
  drivers/ata/libata-acpi.c | 83 ++++++++++++++++++++++++++++++++---------------
  drivers/ata/libata-core.c | 22 +++++++++----
  drivers/ata/libata-eh.c   |  9 ++---
  3 files changed, 78 insertions(+), 36 deletions(-)

Can you rediff this on top of libata-dev.git #upstream?


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help