Skip to content

Commit da634f6

Browse files
Hans Verkuilmchehab
authored andcommitted
media: cec-core.rst/cec-ioc-receive.rst: clarify CEC_TX_STATUS_ERROR
CEC_TX_STATUS_ERROR can be used if the HW cannot tell LOST_ARB and LOW_DRIVE apart, or when some other error occurs. It is not a replacement for NACK. So the hardware must be able to tell the difference between OK, NACK and 'something else'. Clarify the documentation (both public and kernel API) on this point. Also fix two small typos (this messages -> this message). Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
1 parent 9a59d93 commit da634f6

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

‎Documentation/media/kapi/cec-core.rst‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ CEC_TX_STATUS_LOW_DRIVE:
227227
retransmission.
228228

229229
CEC_TX_STATUS_ERROR:
230-
some unspecified error occurred: this can be one of
231-
the previous two if the hardware cannot differentiate or something
230+
some unspecified error occurred: this can be one of ARB_LOST
231+
or LOW_DRIVE if the hardware cannot differentiate or something
232232
else entirely.
233233

234234
CEC_TX_STATUS_MAX_RETRIES:
@@ -238,6 +238,9 @@ CEC_TX_STATUS_MAX_RETRIES:
238238
doesn't have to make another attempt to transmit the message
239239
since the hardware did that already.
240240

241+
The hardware must be able to differentiate between OK, NACK and 'something
242+
else'.
243+
241244
The \*_cnt arguments are the number of error conditions that were seen.
242245
This may be 0 if no information is available. Drivers that do not support
243246
hardware retry can just set the counter corresponding to the transmit error

‎Documentation/media/uapi/cec/cec-ioc-receive.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ View On' messages from initiator 0xf ('Unregistered') to destination 0 ('TV').
131131
- ``tx_status``
132132
- The status bits of the transmitted message. See
133133
:ref:`cec-tx-status` for the possible status values. It is 0 if
134-
this messages was received, not transmitted.
134+
this message was received, not transmitted.
135135
* - __u8
136136
- ``msg[16]``
137137
- The message payload. For :ref:`ioctl CEC_TRANSMIT <CEC_TRANSMIT>` this is filled in by the
@@ -168,7 +168,7 @@ View On' messages from initiator 0xf ('Unregistered') to destination 0 ('TV').
168168
- ``tx_status``
169169
- The status bits of the transmitted message. See
170170
:ref:`cec-tx-status` for the possible status values. It is 0 if
171-
this messages was received, not transmitted.
171+
this message was received, not transmitted.
172172
* - __u8
173173
- ``tx_arb_lost_cnt``
174174
- A counter of the number of transmit attempts that resulted in the
@@ -256,9 +256,9 @@ View On' messages from initiator 0xf ('Unregistered') to destination 0 ('TV').
256256
- ``CEC_TX_STATUS_ERROR``
257257
- 0x10
258258
- Some error occurred. This is used for any errors that do not fit
259-
the previous two, either because the hardware could not tell which
260-
error occurred, or because the hardware tested for other
261-
conditions besides those two.
259+
``CEC_TX_STATUS_ARB_LOST`` or ``CEC_TX_STATUS_LOW_DRIVE``, either because
260+
the hardware could not tell which error occurred, or because the hardware
261+
tested for other conditions besides those two.
262262
* .. _`CEC-TX-STATUS-MAX-RETRIES`:
263263

264264
- ``CEC_TX_STATUS_MAX_RETRIES``

0 commit comments

Comments
 (0)