Commit 59db0c49 authored by Vojtech Pavlik's avatar Vojtech Pavlik

Rescan a serio port in serio.c only when a character comes from it

only in case it's a valid character (correct parity, no timeout).
parent d9d5add2
......@@ -139,8 +139,9 @@ void serio_interrupt(struct serio *serio, unsigned char data, unsigned int flags
{
if (serio->dev && serio->dev->interrupt)
serio->dev->interrupt(serio, data, flags);
else
serio_rescan(serio);
else
if (!flags)
serio_rescan(serio);
}
void serio_register_port(struct serio *serio)
......
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