From patchwork Tue Mar 31 16:14:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomeu Vizoso X-Patchwork-Id: 6131751 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6D878BF4A6 for ; Tue, 31 Mar 2015 16:18:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2D6982010E for ; Tue, 31 Mar 2015 16:18:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C6E31201C0 for ; Tue, 31 Mar 2015 16:17:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753111AbbCaQP7 (ORCPT ); Tue, 31 Mar 2015 12:15:59 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:38169 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753084AbbCaQP5 (ORCPT ); Tue, 31 Mar 2015 12:15:57 -0400 Received: by wibgn9 with SMTP id gn9so32674757wib.1; Tue, 31 Mar 2015 09:15:55 -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=yknfmjtEwtRltKx0pGobuTN7as3rixa8TWKbTPplwKk=; b=gK7isxlcOgfpX8lEIFbcUOpvWOY2767J9n1WOSOpwFubbAUyZwktdn890S6YkwsF40 US+DyedHeqR5Z0hXFHFXPTdk6GpcKSb76CRkYofPjcjFPHzkVvyP99+rPC5a/MYwUAqj AnR5auv7W9F7TMnDMfBHQzvzW7bmekR0tAphNReNdTjnWU163F/bcOjKtPjshycBjJLk aDAnSfyoocRrXrdmxfhZStsdExmaAXqovhIX4WfyzIpjRerTOz7mbt46tBO3ohy9dzzu oanw2nJyjezYYZCeBf/5iXUI9YrIOGYYT2xxg3slc21NehIr02F9AXtHubdv00xfstbA 1iKg== X-Received: by 10.180.97.66 with SMTP id dy2mr6673607wib.77.1427818555916; Tue, 31 Mar 2015 09:15:55 -0700 (PDT) Received: from cizrna.lan ([109.72.12.56]) by mx.google.com with ESMTPSA id lx10sm20984796wjb.17.2015.03.31.09.15.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Mar 2015 09:15:55 -0700 (PDT) From: Tomeu Vizoso To: linux-pm@vger.kernel.org Cc: Tomeu Vizoso , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] Input: evdev - Enable runtime PM of the evdev input handler Date: Tue, 31 Mar 2015 18:14:49 +0200 Message-Id: <1427818501-10201-6-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.3.4 In-Reply-To: <1427818501-10201-1-git-send-email-tomeu.vizoso@collabora.com> References: <1427818501-10201-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=unavailable 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 ancestor devices can remain runtime-suspended when the system goes into a sleep state, they and all of their descendant devices need to have runtime PM enabled. Signed-off-by: Tomeu Vizoso --- drivers/input/evdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index a18f41b..3d60c20 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "input-compat.h" enum evdev_clock_type { @@ -1201,6 +1202,8 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev, if (error) goto err_cleanup_evdev; + pm_runtime_enable(&evdev->dev); + return 0; err_cleanup_evdev: