diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2018-02-28 13:47:07 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-03-05 15:46:24 +0300 |
commit | e113d65ae417ae6d9be229649b81d404c47ade79 (patch) | |
tree | 083542d4725624c3a7a0c5a5af4cef508a631368 /mm | |
parent | 2fe4c22c53fc2e3f35be2cd0033cb3d15ebd41b1 (diff) | |
download | linux-e113d65ae417ae6d9be229649b81d404c47ade79.tar.xz |
media: tegra-cec: reset rx_buf_cnt when start bit detected
If a start bit is detected, then reset the receive buffer counter to 0.
This ensures that no stale data is in the buffer if a message is
broken off midstream due to e.g. a Low Drive condition and then
retransmitted.
The only Rx interrupts we need to listen to are RX_REGISTER_FULL (i.e.
a valid byte was received) and RX_START_BIT_DETECTED (i.e. a new
message starts and we need to reset the counter).
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v4.15 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions