lkml.org 
[lkml]   [2012]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: [RFC PATCH 2/6] ACPI: Reference devices in ACPI Power Resource
On Fri, 17 Feb 2012, Zhang, Rui wrote:

> > Do you basically want
> > the ZPODD always to be suspended and resumed along with the ATA port,
>
> No. ZPODD suspends itself, which put ZPODD to a SCSI low power state (NOT power off/D3_COLD).
> And then it is the "Runtime PM core" that suspends ATA port after ZPODD being suspended.
> And the .runtime_suspend callback for ATA port actually turns off the ZPODD power.
>
> During resume, ATA port is resumed first because of the ACPI wakeup event.
> But in fact, this wakeup event should be read as "ZPODD remote wakeup signal", thus runtime resume request is sent to ZPODD, done by Patch 3/6.
>
> > or should it be possible to suspend the ZPODD while the port remains
> > running?
> >
> Sure, but the power is still on at this time.

Then maybe you can use pm_runtime_no_callbacks() for the ZPODD device.
It's explained in Documentation/power/runtime_pm.txt, and I use it for
USB interfaces.

The idea is that the ZPODD will never receive any runtime PM callbacks
from the PM core. Instead the ATA port callback routines will be
responsible for power management of the ZPODD device.

Alan Stern



\
 
 \ /
  Last update: 2012-02-17 16:09    [W:0.120 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site