lkml.org 
[lkml]   [2009]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch update] Re: [linux-pm] Run-time PM idea (was: Re: [RFC][PATCH 0/2] PM: Rearrange core suspend code)
On Thu, 11 Jun 2009, Rafael J. Wysocki wrote:

> > > > It might also be nice to make sure that the driver core autoresumes a
> > > > device before probing it and autosuspends a device (after some
> > > > reasonable delay) after unbinding its driver.
> > >
> > > Agreed.
> >
> > This is another case where a usage counter comes in handy. The driver
> > core resumes the device and increments the counter -- thus preventing
> > any unwanted autosuspends -- before making the probe and remove calls.
>
> I like this idea.
>
> BTW, where exactly the counter should be increased in that case?
>
> I thought of driver_probe_device(), but is it sufficient? Or is there a better
> place?

That's okay. Or you could put it in really_probe(). Either one.

Alan Stern



\
 
 \ /
  Last update: 2009-06-12 16:29    [W:0.087 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site