From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Zhang Rui <rui.zhang@intel.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-pm <linux-pm@lists.linux-foundation.org>,
linux-acpi <linux-acpi@vger.kernel.org>,
Pavel Machek <pavel@ucw.cz>, Len Brown <lenb@kernel.org>,
Arjan van de Ven <arjan@linux.intel.com>,
"dtor@mail.ru" <dtor@mail.ru>
Subject: Re: [PATCH V2 0/4] introduce device async actions mechanism
Date: Wed, 12 Aug 2009 23:18:12 +0200 [thread overview]
Message-ID: <200908122318.12145.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0908121633220.23954-100000@iolanthe.rowland.org>
On Wednesday 12 August 2009, Alan Stern wrote:
> On Wed, 12 Aug 2009, Rafael J. Wysocki wrote:
>
> > > The one thing I'm not sure of is the pm_runtime_put_noidle calls in
> > > driver_probe_device and __device_release_driver. It seems that we
> > > should always call pm_runtime_put regardless of whether the probe
> > > succeeds or not.
> >
> > Did you mean pm_runtime_put_sync()?
>
> Yes. I haven't used the new code yet so the names don't stick in my
> mind.
>
> > > For example, the USB stack is set up to suspend devices that don't have
> > > a driver (this is handled at the bus subsystem level). But if probing
> > > failed, there wouldn't be any idle callback and so the suspend wouldn't
> > > take place.
> >
> > OK, I'll make this change.
>
> Thanks. Now I just have to figure out the best way to convert USB over
> to the new framework...
:-)
On a second thought, though, would it be a good idea to add
pm_runtime_get_noresume() / pm_runtime_put_sync() around the bus_for_each_drv()
in device_attach()? That would prevent us from resuming-suspending the device
on each failing probe.
Rafael
next prev parent reply other threads:[~2009-08-12 21:18 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-24 3:01 [PATCH V2 0/4] introduce device async actions mechanism Zhang Rui
2009-08-03 21:18 ` Rafael J. Wysocki
2009-08-04 3:35 ` Zhang Rui
2009-08-04 16:21 ` Rafael J. Wysocki
2009-08-04 17:33 ` Alan Stern
2009-08-04 18:44 ` Rafael J. Wysocki
2009-08-05 1:47 ` Zhang Rui
2009-08-07 23:42 ` Rafael J. Wysocki
2009-08-05 2:24 ` Zhang Rui
2009-08-08 0:22 ` Rafael J. Wysocki
2009-08-08 0:29 ` Dmitry Torokhov
2009-08-08 12:53 ` Rafael J. Wysocki
2009-08-11 6:22 ` Zhang Rui
2009-08-11 15:34 ` Rafael J. Wysocki
2009-08-11 15:53 ` Alan Stern
2009-08-11 18:12 ` Rafael J. Wysocki
2009-08-11 18:59 ` Alan Stern
2009-08-11 23:17 ` Rafael J. Wysocki
2009-08-12 14:03 ` Alan Stern
2009-08-12 20:10 ` Rafael J. Wysocki
2009-08-12 20:34 ` Alan Stern
2009-08-12 21:18 ` Rafael J. Wysocki [this message]
2009-08-13 14:30 ` Alan Stern
2009-08-13 17:53 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908122318.12145.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=arjan@linux.intel.com \
--cc=dtor@mail.ru \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@ucw.cz \
--cc=rui.zhang@intel.com \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox