media: cec: be smarter about detecting the number of attempts made
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 11 Jul 2017 11:20:18 +0000 (08:20 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 18 Jul 2017 15:58:56 +0000 (12:58 -0300)
commit688318c35af41e0638e5773140284836bcf0c9f3
treec658af156b6b623d6203d53d5b7f1b0de43714cd
parentab2ec7a53c661394eec55194500fe82e4cd32bc8
media: cec: be smarter about detecting the number of attempts made

Some hardware does more than one attempt. So when it calls
cec_transmit_done when an error occurred it will e.g. use an error count
of 2 instead of 1.

The framework always assumed a single attempt, but now it is smarter
and will sum the counters to detect how many attempts were made.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/cec/cec-adap.c