]> git.ipfire.org Git - ipfire-3.x.git/blob - kernel/patches/linux-2.6-input-kill-stupid-messages.patch
kernel: Import a couple of patches.
[ipfire-3.x.git] / kernel / patches / linux-2.6-input-kill-stupid-messages.patch
1 From b2c6d55b2351152696aafb8c9bf3ec8968acf77c Mon Sep 17 00:00:00 2001
2 From: Kyle McMartin <kyle@phobos.i.jkkm.org>
3 Date: Mon, 29 Mar 2010 23:59:58 -0400
4 Subject: linux-2.6-input-kill-stupid-messages
5
6 ---
7 drivers/input/keyboard/atkbd.c | 5 +++++
8 1 files changed, 5 insertions(+), 0 deletions(-)
9
10 diff --git a/drivers/input/keyboard/atkbd.c b/drivers/input/keyboard/atkbd.c
11 index d358ef8..38db098 100644
12 --- a/drivers/input/keyboard/atkbd.c
13 +++ b/drivers/input/keyboard/atkbd.c
14 @@ -425,11 +426,15 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data,
15 goto out;
16 case ATKBD_RET_ACK:
17 case ATKBD_RET_NAK:
18 +#if 0
19 + /* Quite a few key switchers and other tools trigger this
20 + * and it confuses people who can do nothing about it */
21 if (printk_ratelimit())
22 dev_warn(&serio->dev,
23 "Spurious %s on %s. "
24 "Some program might be trying access hardware directly.\n",
25 data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys);
26 +#endif
27 goto out;
28 case ATKBD_RET_ERR:
29 atkbd->err_count++;
30 --
31 1.7.0.1
32