Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753087AbbDCM6c (ORCPT ); Fri, 3 Apr 2015 08:58:32 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:36310 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753011AbbDCM60 (ORCPT ); Fri, 3 Apr 2015 08:58:26 -0400 From: Tomeu Vizoso To: linux-pm@vger.kernel.org Cc: Tomeu Vizoso , Alan Stern , Dan Williams , Dmitry Torokhov , Greg Kroah-Hartman , Hans Verkuil , Julius Werner , Laurent Pinchart , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-usb@vger.kernel.org, Mauro Carvalho Chehab , Pratyush Anand , "Rafael J. Wysocki" , Ramakrishnan Muthukrishnan , Sakari Ailus , Scot Doyle , Sebastian Andrzej Siewior , Sylwester Nawrocki , Viresh Kumar Subject: [PATCH v2 0/7] Allow UVC devices to remain runtime-suspended when sleeping Date: Fri, 3 Apr 2015 14:57:49 +0200 Message-Id: <1428065887-16017-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.3.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2065 Lines: 50 v2: * Let creators of the input device to decide whether it should remain runtime suspended when the system goes into a sleep state * Don't enable PM runtime on all evdev handlers * Cope with another wrong wakeup setting in usb_dev_prepare 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 device 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 (7): Input: Implement dev_pm_ops.prepare in input_class Input: Add input_dev.stay_runtime_suspended flag [media] uvcvideo: Set input_dev.stay_runtime_suspended flag [media] uvcvideo: Enable runtime PM of descendant devices [media] v4l2-core: Implement dev_pm_ops.prepare() [media] media-devnode: Implement dev_pm_ops.prepare callback USB / PM: Allow USB devices to remain runtime-suspended when sleeping drivers/input/input.c | 20 ++++++++++++++++++++ drivers/media/media-devnode.c | 10 ++++++++++ drivers/media/usb/uvc/uvc_driver.c | 11 +++++++++++ drivers/media/usb/uvc/uvc_status.c | 1 + 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 | 8 +++++++- include/linux/input.h | 4 ++++ 10 files changed, 102 insertions(+), 1 deletion(-) -- 2.3.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/