From 17d6b8a74334e43f3e96299300c4db3630dda8e8 Mon Sep 17 00:00:00 2001 From: Vojtech Pavlik <vojtech@suse.cz> Date: Wed, 3 Mar 2004 13:50:22 +0100 Subject: [PATCH] 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. --- drivers/input/serio/serio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c index 53e77f40e2fe..0be7dafbed16 100644 --- a/drivers/input/serio/serio.c +++ b/drivers/input/serio/serio.c @@ -195,6 +195,9 @@ irqreturn_t serio_interrupt(struct serio *serio, ret = serio->dev->interrupt(serio, data, flags, regs); } else { if (!flags) { + if ((serio->type == SERIO_8042 || + serio->type == SERIO_8042_XL) && (data != 0xaa)) + return ret; serio_rescan(serio); ret = IRQ_HANDLED; } -- 2.30.9