linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] ahci: platform support for suspend/resume
       [not found] ` <20111116203422.GA29581@legolas.emea.dhcp.ti.com>
@ 2011-11-18  0:31   ` Brian Norris
       [not found]   ` <CAN8TOE9T8YJ8Kbz=cuQ_CYPQozxU--yskZuBcXwe_emVVNQqDg@mail.gmail.com>
  1 sibling, 0 replies; 2+ messages in thread
From: Brian Norris @ 2011-11-18  0:31 UTC (permalink / raw)
  To: balbi
  Cc: Linux Kernel, linux-ide, Tejun Heo, linux-pm, Anton Vorontsov,
	Jeff Garzik

+linux-pm mailing list

Hi Felipe,

On Wed, Nov 16, 2011 at 12:34 PM, Felipe Balbi <balbi@ti.com> wrote:
> On Wed, Nov 16, 2011 at 12:27:59PM -0800, Brian Norris wrote:
>> +     /* Does platform support suspend/resume? */
>> +     if (!pdata->suspend || !pdata->resume)
>> +             return -EINVAL;
>
> should you really prevent suspend is platform doesn't provide
> ->suspend() ?

No, we shouldn't prevent suspend entirely; that would just be my
accidental side effect.

> I mean, we could some platform where all clocks are autogated and
> there's no need for platform to do anything. Would it be better to only
> call pdata->suspend if it exists but still let the AHCI-specific part go
> through ?

Perhaps. But would this have any unintended effects on systems that
don't implement AHCI power management at all? My intention was just to
provide an 'opt-in' interface for platform developers. I probably got
this wrong.

Brian

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] ahci: platform support for suspend/resume
       [not found]   ` <CAN8TOE9T8YJ8Kbz=cuQ_CYPQozxU--yskZuBcXwe_emVVNQqDg@mail.gmail.com>
@ 2011-11-18  9:17     ` Felipe Balbi
  0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2011-11-18  9:17 UTC (permalink / raw)
  To: Brian Norris
  Cc: Linux Kernel, balbi, linux-ide, Tejun Heo, linux-pm,
	Anton Vorontsov, Jeff Garzik


[-- Attachment #1.1: Type: text/plain, Size: 1218 bytes --]

On Thu, Nov 17, 2011 at 04:31:32PM -0800, Brian Norris wrote:
> +linux-pm mailing list
> 
> Hi Felipe,
> 
> On Wed, Nov 16, 2011 at 12:34 PM, Felipe Balbi <balbi@ti.com> wrote:
> > On Wed, Nov 16, 2011 at 12:27:59PM -0800, Brian Norris wrote:
> >> +     /* Does platform support suspend/resume? */
> >> +     if (!pdata->suspend || !pdata->resume)
> >> +             return -EINVAL;
> >
> > should you really prevent suspend is platform doesn't provide
> > ->suspend() ?
> 
> No, we shouldn't prevent suspend entirely; that would just be my
> accidental side effect.
> 
> > I mean, we could some platform where all clocks are autogated and
> > there's no need for platform to do anything. Would it be better to only
> > call pdata->suspend if it exists but still let the AHCI-specific part go
> > through ?
> 
> Perhaps. But would this have any unintended effects on systems that
> don't implement AHCI power management at all? My intention was just to
> provide an 'opt-in' interface for platform developers. I probably got
> this wrong.

I guess you could add a flag for that, but until we know that the AHCI
powermanagement is broken somewhere should we really care ? :-)

-- 
balbi

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-18  9:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1321475279-29930-1-git-send-email-computersforpeace@gmail.com>
     [not found] ` <20111116203422.GA29581@legolas.emea.dhcp.ti.com>
2011-11-18  0:31   ` [PATCH] ahci: platform support for suspend/resume Brian Norris
     [not found]   ` <CAN8TOE9T8YJ8Kbz=cuQ_CYPQozxU--yskZuBcXwe_emVVNQqDg@mail.gmail.com>
2011-11-18  9:17     ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).