]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "serial: max310x: rework RX interrupt handling"
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 17 Feb 2021 08:06:08 +0000 (11:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:27:56 +0000 (09:27 +0100)
commit63bfb4771d06a7735c95763b9b255ff56796a903
tree57d880065307929443a77467a838c3d41ada64af
parent6c0d60a2f78f68dde49d95d621c7c713dd9ca4f8
Revert "serial: max310x: rework RX interrupt handling"

This reverts commit 50120d0f4ed492b533800457b74cfcd1786cd10e.

FIFO is triggered 4 intervals after receiving a byte, it's good
when we don't care about the time of reception, but are only
interested in the presence of any activity on the line.
Unfortunately, this method is not suitable for all tasks,
for example, the RS-485 protocol will not work properly,
since the state machine must track the request-response time
and after the timeout expires, a decision is made that the device
on the line is not responding.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Link: https://lore.kernel.org/r/20210217080608.31192-1-shc_work@mail.ru
Fixes: 50120d0f4ed4 ("serial: max310x: rework RX interrupt handling")
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/max310x.c