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 ...@@ -139,8 +139,9 @@ void serio_interrupt(struct serio *serio, unsigned char data, unsigned int flags
{ {
if (serio->dev && serio->dev->interrupt) if (serio->dev && serio->dev->interrupt)
serio->dev->interrupt(serio, data, flags); serio->dev->interrupt(serio, data, flags);
else else
serio_rescan(serio); if (!flags)
serio_rescan(serio);
} }
void serio_register_port(struct serio *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