Correct.
> but set TTY_FRAME anyway.
Only if INPCK is set. If it's clear, then it will ignore framing and
parity errors. (Irrespective of this, it will still internally count
them for statistical purposes, just like 2.4 used to.)
However, since INPCK is clear (from the info Jean's already sent) you'll
receive the character a TTY_NORMAL flag, even though the hardware flagged
an error.
> Ok, I think what might happen is you are receiving some kind of IR-noise
> (maybe environment, maybe reflected, maybe dongle echo) causing bytes with
> framing errors to get passed to and handled by irtty in one go with the
> beginning of the first byte(s) from the next incoming frame. Thus we
> discard the BOF and the whole frame is missed :-(
Maybe the problem is that you want to discard the bad byte (by flagging
it with a non-TTY_NORMAL flag.)
-- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/