Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753197AbbDCM6j (ORCPT ); Fri, 3 Apr 2015 08:58:39 -0400 Received: from mail-wg0-f43.google.com ([74.125.82.43]:35117 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753081AbbDCM6b (ORCPT ); Fri, 3 Apr 2015 08:58:31 -0400 From: Tomeu Vizoso To: linux-pm@vger.kernel.org Cc: Tomeu Vizoso , Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/7] [media] uvcvideo: Set input_dev.stay_runtime_suspended flag Date: Fri, 3 Apr 2015 14:57:52 +0200 Message-Id: <1428065887-16017-4-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.3.4 In-Reply-To: <1428065887-16017-1-git-send-email-tomeu.vizoso@collabora.com> References: <1428065887-16017-1-git-send-email-tomeu.vizoso@collabora.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 28 So that the UVC device can remain runtime suspended when the system goes into a sleep state, let the input device do the same. Signed-off-by: Tomeu Vizoso --- drivers/media/usb/uvc/uvc_status.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/uvc/uvc_status.c b/drivers/media/usb/uvc/uvc_status.c index f552ab9..78647c0 100644 --- a/drivers/media/usb/uvc/uvc_status.c +++ b/drivers/media/usb/uvc/uvc_status.c @@ -39,6 +39,7 @@ static int uvc_input_init(struct uvc_device *dev) input->phys = dev->input_phys; usb_to_input_id(dev->udev, &input->id); input->dev.parent = &dev->intf->dev; + input->stay_runtime_suspended = true; __set_bit(EV_KEY, input->evbit); __set_bit(KEY_CAMERA, input->keybit); -- 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/