From patchwork Tue Oct 27 08:47:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Balint Czobor X-Patchwork-Id: 7494791 Return-Path: X-Original-To: patchwork-linux-input@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 58D1D9F36A for ; Tue, 27 Oct 2015 08:48:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 85031206CB for ; Tue, 27 Oct 2015 08:48:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1C8E206C7 for ; Tue, 27 Oct 2015 08:48:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754468AbbJ0IsR (ORCPT ); Tue, 27 Oct 2015 04:48:17 -0400 Received: from mail-wi0-f179.google.com ([209.85.212.179]:34930 "EHLO mail-wi0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754495AbbJ0IsQ (ORCPT ); Tue, 27 Oct 2015 04:48:16 -0400 Received: by wicll6 with SMTP id ll6so148769198wic.0; Tue, 27 Oct 2015 01:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=cuUwfiKqbSd7pGaSh+3VtTXYtifezmlpPgi2hh31h+o=; b=vhOw9xnOM4wBCOUbDW9zu8hK8iGwQgiqm0uj2z3xcH03LHeMeLzya3jdC+4SVq007z P+hvqgM4G5QyDZQR4+Vo1/P6/B2+q8P4FlYkinqZVusylYf8nDeNKRCYoi803+J9AKdX HHuvUwEVb3hsV+wop5Uoe8R++19WASTyhIyKF9YKxB6Bl7V0RHX6KZO0nM55asnXaSnc 5mij5AHmd3qvELzNU0r09p90BYW584Nh3rCfsCCtbVn8ufg6JJ7FHCWGnlsDyRtSGgZj X+bdAWmrahwFA73UvxbfU2atfQRT+/4tvoh/biCw4bfM2RaIf0cub/PgchePE+OFMfPt 9H6w== X-Received: by 10.180.205.145 with SMTP id lg17mr26289806wic.67.1445935694874; Tue, 27 Oct 2015 01:48:14 -0700 (PDT) Received: from localhost.localdomain (51B70C10.dsl.pool.telekom.hu. [81.183.12.16]) by smtp.gmail.com with ESMTPSA id mx13sm16932003wic.19.2015.10.27.01.48.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Oct 2015 01:48:14 -0700 (PDT) From: =?UTF-8?q?B=C3=A1lint=20Czobor?= To: Dmitry Torokhov , Mark Brown Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, JP Abgrall , =?UTF-8?q?B=C3=A1lint=20Czobor?= Subject: [PATCH 2/3] input: misc: keychord: log when keychord triggered Date: Tue, 27 Oct 2015 09:47:56 +0100 Message-Id: <1445935676-5830-1-git-send-email-czoborbalint@gmail.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 From: JP Abgrall log keychord id at info level just before waking up processes. Signed-off-by: JP Abgrall Signed-off-by: Bálint Czobor --- drivers/input/misc/keychord.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/misc/keychord.c b/drivers/input/misc/keychord.c index 3ffab6d..a5ea27a 100644 --- a/drivers/input/misc/keychord.c +++ b/drivers/input/misc/keychord.c @@ -126,8 +126,12 @@ static void keychord_event(struct input_handle *handle, unsigned int type, done: spin_unlock_irqrestore(&kdev->lock, flags); - if (got_chord) + if (got_chord) { + pr_info("keychord: got keychord id %d. Any tasks: %d\n", + keychord->id, + !list_empty_careful(&kdev->waitq.task_list)); wake_up_interruptible(&kdev->waitq); + } } static int keychord_connect(struct input_handler *handler,