Commit 17d6b8a7 authored by Vojtech Pavlik's avatar Vojtech Pavlik

input: Only do hotplug on PS/2 HW when the HW sends 0xaa. This

       avoids problems with broken USB->PS/2 legacy emulation
       in certain BIOSes.
parent 5b3d5cb7
...@@ -195,6 +195,9 @@ irqreturn_t serio_interrupt(struct serio *serio, ...@@ -195,6 +195,9 @@ irqreturn_t serio_interrupt(struct serio *serio,
ret = serio->dev->interrupt(serio, data, flags, regs); ret = serio->dev->interrupt(serio, data, flags, regs);
} else { } else {
if (!flags) { if (!flags) {
if ((serio->type == SERIO_8042 ||
serio->type == SERIO_8042_XL) && (data != 0xaa))
return ret;
serio_rescan(serio); serio_rescan(serio);
ret = IRQ_HANDLED; ret = IRQ_HANDLED;
} }
......
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