]> rtime.felk.cvut.cz Git - linux-lin.git/commit
sllin: If length is unknown read until timer occurs or break is received
authorAlexander Stein <alexander.stein@systec-electronic.com>
Mon, 16 Dec 2013 07:54:05 +0000 (08:54 +0100)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 16 Jan 2014 23:50:33 +0000 (00:50 +0100)
commit4d395daeab8a91e2eb519fba8b213a84f33d1ea0
tree1bb630e966275a547f156e9987441726989adf80
parentf3a1f9389debdca4544367e83883468d42a483d2
sllin: If length is unknown read until timer occurs or break is received

If the length is unknown stop waiting for new data until the tty rx queue
is empty once is not working on fast systems where sllin_receive_buf is
called for each byte received. Instead wait up to 8 bytes, when the
timeout occurs or when a new break is received.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
sllin/sllin.c