From patchwork Fri Apr 3 12:57:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 6156641 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D627F9F1BE for ; Fri, 3 Apr 2015 12:59:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 091F820303 for ; Fri, 3 Apr 2015 12:59:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1F89B20274 for ; Fri, 3 Apr 2015 12:59:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753130AbbDCM6f (ORCPT ); Fri, 3 Apr 2015 08:58:35 -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 Received: by wgdm6 with SMTP id m6so110567006wgd.2; Fri, 03 Apr 2015 05:58:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=snKaap+6wgWhXFDalNBBRUgSjQQs5/x41MCmyTLasY8=; b=lTBMkHwYQuTtb4R+T+ahpzVESIMTJJwbkup8Xp54OOzYlbMp4ipqoViPCNaJYYf2BC j8CLAl6sJhw4ghjvFKmZ2+IcJLCUlY6qYMLIOSev2LAa0WQ8frg8Kv0clwTEx6ct0Vf8 TSZoS7Yv6MOk4UOQoo8wC2FqbZKqboA9Usb/lWEyWmlFg07OTbaxhZ0aYIqsd6RuPtyO 3/+JjR84bwdXhQppGgAb0ojxggMCxRpnEUd5u3RsNMoc4BM4+Ts+SFs8k90tF0rSo2fx qd+ohiBE51J8RyD3JbGmWxRUWBgFK94usWScGd21Myy9XdmS7VNadSsXToYHOEUuuAsu xA8w== X-Received: by 10.180.14.135 with SMTP id p7mr5337545wic.8.1428065909839; Fri, 03 Apr 2015 05:58:29 -0700 (PDT) Received: from cizrna.lan ([109.72.12.93]) by mx.google.com with ESMTPSA id n6sm2664610wiw.6.2015.04.03.05.58.28 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Apr 2015 05:58:29 -0700 (PDT) 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);