media: cec-core.rst/cec-ioc-receive.rst: clarify CEC_TX_STATUS_ERROR
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 18 Sep 2017 09:23:57 +0000 (05:23 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 23 Sep 2017 11:41:38 +0000 (07:41 -0400)
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>
Documentation/media/kapi/cec-core.rst
Documentation/media/uapi/cec/cec-ioc-receive.rst

index 28866259998c9f547e01fa2f5a52e03a681b8814..d37e107f2fde5fe092474dd375dc8e96ad17a9f5 100644 (file)
@@ -227,8 +227,8 @@ CEC_TX_STATUS_LOW_DRIVE:
        retransmission.
 
 CEC_TX_STATUS_ERROR:
-       some unspecified error occurred: this can be one of
-       the previous two if the hardware cannot differentiate or something
+       some unspecified error occurred: this can be one of ARB_LOST
+       or LOW_DRIVE if the hardware cannot differentiate or something
        else entirely.
 
 CEC_TX_STATUS_MAX_RETRIES:
@@ -238,6 +238,9 @@ CEC_TX_STATUS_MAX_RETRIES:
        doesn't have to make another attempt to transmit the message
        since the hardware did that already.
 
+The hardware must be able to differentiate between OK, NACK and 'something
+else'.
+
 The \*_cnt arguments are the number of error conditions that were seen.
 This may be 0 if no information is available. Drivers that do not support
 hardware retry can just set the counter corresponding to the transmit error
index 0f397c535a4cde648d5e2e132d25021457cb1418..bdad4b197bcd457196a83800246ae10f8087eb7e 100644 (file)
@@ -131,7 +131,7 @@ View On' messages from initiator 0xf ('Unregistered') to destination 0 ('TV').
       - ``tx_status``
       - The status bits of the transmitted message. See
        :ref:`cec-tx-status` for the possible status values. It is 0 if
-       this messages was received, not transmitted.
+       this message was received, not transmitted.
     * - __u8
       - ``msg[16]``
       - 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').
       - ``tx_status``
       - The status bits of the transmitted message. See
        :ref:`cec-tx-status` for the possible status values. It is 0 if
-       this messages was received, not transmitted.
+       this message was received, not transmitted.
     * - __u8
       - ``tx_arb_lost_cnt``
       - 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').
       - ``CEC_TX_STATUS_ERROR``
       - 0x10
       - Some error occurred. This is used for any errors that do not fit
-       the previous two, either because the hardware could not tell which
-       error occurred, or because the hardware tested for other
-       conditions besides those two.
+       ``CEC_TX_STATUS_ARB_LOST`` or ``CEC_TX_STATUS_LOW_DRIVE``, either because
+       the hardware could not tell which error occurred, or because the hardware
+       tested for other conditions besides those two.
     * .. _`CEC-TX-STATUS-MAX-RETRIES`:
 
       - ``CEC_TX_STATUS_MAX_RETRIES``