Commit 71ad0225 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Vojtech Pavlik

Input: Change spurious ACK warning in atkbd to soften accusation

       against XFree86
parent e648554a
...@@ -300,15 +300,20 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data, ...@@ -300,15 +300,20 @@ static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data,
case ATKBD_KEY_NULL: case ATKBD_KEY_NULL:
break; break;
case ATKBD_KEY_UNKNOWN: case ATKBD_KEY_UNKNOWN:
printk(KERN_WARNING "atkbd.c: Unknown key %s (%s set %d, code %#x on %s).\n", if (data == ATKBD_RET_ACK || data == ATKBD_RET_NAK) {
atkbd->release ? "released" : "pressed", printk(KERN_WARNING "atkbd.c: Spurious %s on %s. Some program, "
atkbd->translated ? "translated" : "raw", "like XFree86, might be trying access hardware directly.\n",
atkbd->set, code, serio->phys); data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys);
if (atkbd->translated && atkbd->set == 2 && code == 0x7a) } else {
printk(KERN_WARNING "atkbd.c: This is an XFree86 bug. It shouldn't access" printk(KERN_WARNING "atkbd.c: Unknown key %s "
" hardware directly.\n"); "(%s set %d, code %#x on %s).\n",
else atkbd->release ? "released" : "pressed",
printk(KERN_WARNING "atkbd.c: Use 'setkeycodes %s%02x <keycode>' to make it known.\n", code & 0x80 ? "e0" : "", code & 0x7f); atkbd->translated ? "translated" : "raw",
atkbd->set, code, serio->phys);
printk(KERN_WARNING "atkbd.c: Use 'setkeycodes %s%02x <keycode>' "
"to make it known.\n",
code & 0x80 ? "e0" : "", code & 0x7f);
}
break; break;
case ATKBD_SCR_1: case ATKBD_SCR_1:
scroll = 1 - atkbd->release * 2; scroll = 1 - atkbd->release * 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment