From: Tomeu Vizoso <tomeu.vizoso@collabora.com>
To: linux-pm@vger.kernel.org
Cc: Tomeu Vizoso <tomeu.vizoso@collabora.com>,
Alan Stern <stern@rowland.harvard.edu>,
Dan Williams <dan.j.williams@intel.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Hans Verkuil <hans.verkuil@cisco.com>,
Julius Werner <jwerner@chromium.org>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-media@vger.kernel.org, linux-usb@vger.kernel.org,
Mauro Carvalho Chehab <mchehab@osg.samsung.com>,
Pratyush Anand <pratyush.anand@st.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Ramakrishnan Muthukrishnan <ramakrmu@cisco.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Scot Doyle <lkml14@scotdoyle.com>,
Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Subject: [PATCH 0/6] Allow UVC devices to remain runtime-suspended when sleeping
Date: Tue, 31 Mar 2015 18:14:44 +0200 [thread overview]
Message-ID: <1427818501-10201-1-git-send-email-tomeu.vizoso@collabora.com> (raw)
Hi,
this series contain what I needed to do in order to have my USB webcam to not be resumed when the system resumes, reducing considerably the total time that resuming takes.
It makes use of the facility that Rafael Wysocki added in aae4518b3 ("PM / sleep: Mechanism to avoid resuming runtime-suspended devices unnecessarily"), which requires that a devices and all its descendants opt-in by having their dev_pm_ops.prepare callback return 1, to have runtime PM enabled, and to be runtime suspended when the system goes to a sleep state.
Thanks,
Tomeu
Tomeu Vizoso (6):
[media] uvcvideo: Enable runtime PM of descendant devices
[media] v4l2-core: Implement dev_pm_ops.prepare()
Input: Implement dev_pm_ops.prepare()
[media] media-devnode: Implement dev_pm_ops.prepare callback
Input: evdev - Enable runtime PM of the evdev input handler
USB / PM: Allow USB devices to remain runtime-suspended when sleeping
drivers/input/evdev.c | 3 +++
drivers/input/input.c | 13 +++++++++++++
drivers/media/media-devnode.c | 10 ++++++++++
drivers/media/usb/uvc/uvc_driver.c | 4 ++++
drivers/media/usb/uvc/uvc_status.c | 3 +++
drivers/media/v4l2-core/v4l2-dev.c | 10 ++++++++++
drivers/usb/core/endpoint.c | 17 +++++++++++++++++
drivers/usb/core/message.c | 16 ++++++++++++++++
drivers/usb/core/port.c | 6 ++++++
drivers/usb/core/usb.c | 2 +-
10 files changed, 83 insertions(+), 1 deletion(-)
--
2.3.4
next reply other threads:[~2015-03-31 16:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-31 16:14 Tomeu Vizoso [this message]
2015-03-31 16:14 ` [PATCH 3/6] Input: Implement dev_pm_ops.prepare() Tomeu Vizoso
2015-03-31 16:14 ` [PATCH 5/6] Input: evdev - Enable runtime PM of the evdev input handler Tomeu Vizoso
2015-03-31 20:31 ` Dmitry Torokhov
2015-04-03 13:03 ` Tomeu Vizoso
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=1427818501-10201-1-git-send-email-tomeu.vizoso@collabora.com \
--to=tomeu.vizoso@collabora.com \
--cc=bigeasy@linutronix.de \
--cc=dan.j.williams@intel.com \
--cc=dmitry.torokhov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hans.verkuil@cisco.com \
--cc=jwerner@chromium.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=lkml14@scotdoyle.com \
--cc=mchehab@osg.samsung.com \
--cc=pratyush.anand@st.com \
--cc=rafael.j.wysocki@intel.com \
--cc=ramakrmu@cisco.com \
--cc=sakari.ailus@linux.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;
as well as URLs for NNTP newsgroup(s).