From patchwork Wed Sep 22 17:07:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 199972 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 o8MHHFkr027505 for ; Wed, 22 Sep 2010 17:17:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752732Ab0IVRRP (ORCPT ); Wed, 22 Sep 2010 13:17:15 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:40370 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332Ab0IVRRO (ORCPT ); Wed, 22 Sep 2010 13:17:14 -0400 Received: by fxm12 with SMTP id 12so177933fxm.19 for ; Wed, 22 Sep 2010 10:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=2XX11f92QODCPNh1VSKW8ssUSnqXu5REvxGU+Jtlwlc=; b=XZ4rW4R4D35beCJNeLyvACOU0+yimJNGBpjmlfs8gmD/ZKZ/dA8e3aCZ6vv7Ms2Io5 qiESFlf40DIT+K2MSZWPhmdPdEaRzAiYWbHel9LVOGB6lb97h+S5v09fSFfHdwP/gH6s hvjc7ctKX+8zkuan0aofw/dg61J5gJU1g41X8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=I2bAaAxBZtBPPbvOwWVaxxo9VQLqbN47VOty3WMovJWNbA2BiyERajiZFm4mGPfWcL +pMzT/ChorkDzLpsuLzTjCg1bbxi85P+umMIVVP/F/S2QA8ccczBUeZ2OgF7S3vYxzlT Az29c/L5MKIzGm6QF2+ylPALeR9WLIki5bIro= Received: by 10.223.121.208 with SMTP id i16mr630057far.46.1285175832776; Wed, 22 Sep 2010 10:17:12 -0700 (PDT) Received: from [10.0.0.2] (87.68.18.135.cable.012.net.il [87.68.18.135]) by mx.google.com with ESMTPS id t6sm4367769faa.27.2010.09.22.10.17.07 (version=SSLv3 cipher=RC4-MD5); Wed, 22 Sep 2010 10:17:08 -0700 (PDT) Subject: Re: [Nouveau] [PATCH] drm/nouveau/kms: Implement KDB debug hooks for nouveau KMS. From: Maxim Levitsky To: Jason Wessel Cc: Chris Ball , David Airlie , kgdb-bugreport@lists.sourceforge.net, Jesse Barnes , linux-input In-Reply-To: <1285164387.3159.10.camel@maxim-laptop> References: <4C5ACF3F.8050409@windriver.com> <1283335002.2741.5.camel@maxim-laptop> <4C7E3A73.5070503@windriver.com> <1283424363.2736.1.camel@maxim-laptop> <1285119735.5949.5.camel@maxim-laptop> <1285164198.3159.8.camel@maxim-laptop> <1285164387.3159.10.camel@maxim-laptop> Date: Wed, 22 Sep 2010 19:07:05 +0200 Message-ID: <1285175225.2960.10.camel@maxim-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 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]); Wed, 22 Sep 2010 17:17:16 +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; } diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index ef31bb8..db1eb12 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c @@ -601,7 +601,7 @@ static bool sysrq_filter(struct input_handle *handle, unsigned int type, } out: - return sysrq_down; + return 0; } static int sysrq_connect(struct input_handler *handler,