From patchwork Thu Oct 7 20:35:47 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wessel X-Patchwork-Id: 238901 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 o97Katda012785 for ; Thu, 7 Oct 2010 20:36:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755571Ab0JGUgE (ORCPT ); Thu, 7 Oct 2010 16:36:04 -0400 Received: from mail.windriver.com ([147.11.1.11]:57515 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721Ab0JGUgD (ORCPT ); Thu, 7 Oct 2010 16:36:03 -0400 Received: from ALA-MAIL03.corp.ad.wrs.com (ala-mail03 [147.11.57.144]) by mail.windriver.com (8.14.3/8.14.3) with ESMTP id o97KZrJc016050; Thu, 7 Oct 2010 13:35:53 -0700 (PDT) Received: from ala-mail06.corp.ad.wrs.com ([147.11.57.147]) by ALA-MAIL03.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Oct 2010 13:35:52 -0700 Received: from localhost.localdomain ([172.25.32.37]) by ala-mail06.corp.ad.wrs.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 7 Oct 2010 13:35:52 -0700 From: Jason Wessel To: dmitry.torokhov@gmail.com Cc: kgdb-bugreport@lists.sourceforge.net, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Maxim Levitsky , Jason Wessel Subject: [PATCH 2/3] keyboard, kdb: inject SYN events in kbd_clear_keys_helper Date: Thu, 7 Oct 2010 15:35:47 -0500 Message-Id: <1286483748-1171-3-git-send-email-jason.wessel@windriver.com> X-Mailer: git-send-email 1.6.4.rc1 In-Reply-To: <1286483748-1171-1-git-send-email-jason.wessel@windriver.com> References: <1286483748-1171-1-git-send-email-jason.wessel@windriver.com> X-OriginalArrivalTime: 07 Oct 2010 20:35:53.0018 (UTC) FILETIME=[3C52D9A0:01CB665F] 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]); Thu, 07 Oct 2010 20:36:55 +0000 (UTC) diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 0c6c641..7df6af5 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c @@ -368,6 +368,7 @@ static int kbd_clear_keys_helper(struct input_handle *handle, void *data) { unsigned int *keycode = data; input_inject_event(handle, EV_KEY, *keycode, 0); + input_inject_event(handle, EV_SYN, SYN_REPORT, 0); return 0; }