From: Oliver Neukum <oliver@neukum.org>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org, linux-usb@vger.kernel.org,
will@sowerbutts.com
Subject: Re: [rft]powermate runtime pm
Date: Fri, 4 Jul 2008 00:08:49 +0200 [thread overview]
Message-ID: <200807040008.50174.oliver@neukum.org> (raw)
In-Reply-To: <20080703134107.ZZRA012@mailhub.coreip.homeip.net>
Am Donnerstag 03 Juli 2008 19:43:28 schrieb Dmitry Torokhov:
> Hi Oliver,
>
> On Thu, Jul 03, 2008 at 05:53:16PM +0200, Oliver Neukum wrote:
> > Hi,
> >
> > this should add runtime power management to the powermate driver.
> > In order to do so the driver had to be changed to provide open & close
> > methods. Please test.
> >
>
> I was workinf on adding suspend and resume hooks to input devices to
> reset them into sane state automatically. I am wondering if I should
> call driver's suspend and resume only for open input devices and
If you do that open() would have to redo all initialisation work probe()
would do.
> provide mutual exclusion with open and close. DO you think it will
> help with reagrd to adding autopm support to USB devices?
Mutual exclusion is a very good idea. And telling input devices that
they are open is also a good idea. But this will be difficult, as open()
will almost certainly wish to do as memory allocations can trigger
an autoresume.
Regards
Oliver
next prev parent reply other threads:[~2008-07-03 22:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 15:53 [rft]powermate runtime pm Oliver Neukum
[not found] ` <200807031753.16960.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2008-07-03 17:43 ` Dmitry Torokhov
2008-07-03 22:08 ` Oliver Neukum [this message]
[not found] ` <200807040008.50174.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2008-07-03 22:13 ` Oliver Neukum
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=200807040008.50174.oliver@neukum.org \
--to=oliver@neukum.org \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=will@sowerbutts.com \
/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