]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: cec-core.rst: improve cec_transmit_done documentation
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 5 Oct 2018 12:58:12 +0000 (08:58 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 5 Oct 2018 15:04:39 +0000 (11:04 -0400)
Clarify that calling cec_transmit_done can start a new transmit and
that you should put the hardware in a state that allows for a new
transmit before calling this function.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Documentation/media/kapi/cec-core.rst

index 1d989c5443705e4f413eaf57165b9981bf904639..bca1d9d1d22317357cc9929a6eac8e9f9f82afa4 100644 (file)
@@ -268,6 +268,10 @@ to 1, if the hardware does support retry then either set these counters to
 0 if the hardware provides no feedback of which errors occurred and how many
 times, or fill in the correct values as reported by the hardware.
 
+Be aware that calling these functions can immediately start a new transmit
+if there is one pending in the queue. So make sure that the hardware is in
+a state where new transmits can be started *before* calling these functions.
+
 The cec_transmit_attempt_done() function is a helper for cases where the
 hardware never retries, so the transmit is always for just a single
 attempt. It will call cec_transmit_done() in turn, filling in 1 for the