From patchwork Sun Sep 5 22:22:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 157051 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o85MMtwO008961 for ; Sun, 5 Sep 2010 22:22:58 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754489Ab0IEWW5 (ORCPT ); Sun, 5 Sep 2010 18:22:57 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:34156 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753678Ab0IEWW5 (ORCPT ); Sun, 5 Sep 2010 18:22:57 -0400 Received: by mail-fx0-f46.google.com with SMTP id 13so2219369fxm.19 for ; Sun, 05 Sep 2010 15:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=wyyzUlPNPUFk2q6/42WIAVqD85Un9iI61yEYh0WmgEs=; b=VbVrqK82GMmqN164nROf5mpSHWDoAnX28KW4OnjL51+P9YqkYL751/L1cUZcTta/0n xz38zv1C8oUIF1zO0ZlPBbWst54VLQNlGn0wwAlP3aB0Su1lkiOgBYj8gLDSFRZkBTqs u3jhXdhnmzLBQiwBOnoPLGn28uGXdjtquVarU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=BVkKjU44fTmDHQJGanS07ATiMqg20wXac3R3LicLZ/aCRJizYdWsa5Hhcvz48O1ZW8 xFzdDpTMgNo/lImjw1WdwWN2rCwIbDtCMZFqmsXMBwLcQKordORhPoVtmirZR1UqL44s KMx0jBDhfkGYYahihHrDMiGPjmwe/7lbi3Tmg= Received: by 10.223.126.4 with SMTP id a4mr630927fas.91.1283725376618; Sun, 05 Sep 2010 15:22:56 -0700 (PDT) Received: from localhost.localdomain (IGLD-84-228-233-189.inter.net.il [84.228.233.189]) by mx.google.com with ESMTPS id u8sm2055880fah.36.2010.09.05.15.22.54 (version=SSLv3 cipher=RC4-MD5); Sun, 05 Sep 2010 15:22:55 -0700 (PDT) From: Maxim Levitsky To: lirc-list@lists.sourceforge.net Cc: Jarod Wilson , =?UTF-8?q?David=20H=C3=A4rdeman?= , mchehab@infradead.org, linux-input@vger.kernel.org, Maxim Levitsky Subject: [PATCH 4/8] IR: fix keys beeing stuck down forever. Date: Mon, 6 Sep 2010 01:22:40 +0300 Message-Id: <1283725364-4053-5-git-send-email-maximlevitsky@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1283725364-4053-1-git-send-email-maximlevitsky@gmail.com> References: <1283725364-4053-1-git-send-email-maximlevitsky@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 05 Sep 2010 22:22:58 +0000 (UTC) diff --git a/drivers/media/IR/ir-keytable.c b/drivers/media/IR/ir-keytable.c index 0917535..a8fd777 100644 --- a/drivers/media/IR/ir-keytable.c +++ b/drivers/media/IR/ir-keytable.c @@ -319,7 +319,7 @@ static void ir_timer_keyup(unsigned long cookie) * a keyup event might follow immediately after the keydown. */ spin_lock_irqsave(&ir->keylock, flags); - if (time_is_after_eq_jiffies(ir->keyup_jiffies)) + if (time_is_before_eq_jiffies(ir->keyup_jiffies)) ir_keyup(ir); spin_unlock_irqrestore(&ir->keylock, flags); }