linux_dsm_epyc7002/Documentation/media/uapi/cec
Hans Verkuil 7ec2b3b941 media: cec: add new tx/rx status bits to detect aborts/timeouts
If the HDMI cable is disconnected or the CEC adapter is manually
unconfigured, then all pending transmits and wait-for-replies are
aborted. Signal this with new status bits (CEC_RX/TX_STATUS_ABORTED).

If due to (usually) a driver bug a transmit never ends (i.e. the
transmit_done was never called by the driver), then when this times
out the message is marked with CEC_TX_STATUS_TIMEOUT.

This should not happen and is an indication of a driver bug.

Without a separate status bit for this it was impossible to detect
this from userspace.

The 'transmit timed out' kernel message is now a warning, so this
should be more prominent in the kernel log as well.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org>      # for v4.18 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-10-05 11:22:39 -04:00
..
cec-api.rst media: cec-pin-error-inj.rst: document CEC Pin Error Injection 2018-03-22 08:54:21 -04:00
cec-func-close.rst media: cec: documentation fixes 2017-08-08 06:35:39 -04:00
cec-func-ioctl.rst media: cec: documentation fixes 2017-08-08 06:35:39 -04:00
cec-func-open.rst media: cec: documentation fixes 2017-08-08 06:35:39 -04:00
cec-func-poll.rst media: cec-func-poll.rst/func-poll.rst: update EINVAL description 2018-09-11 08:37:33 -04:00
cec-funcs.rst media: get rid of a new bogus Sphinx 1.5 warning 2017-07-21 08:15:56 -04:00
cec-header.rst [media] doc-rst: add CEC header file to the documentation 2016-07-09 11:07:10 -03:00
cec-intro.rst [media] cec-intro.rst: mention the v4l-utils package and CEC utilities 2017-01-30 11:41:51 -02:00
cec-ioc-adap-g-caps.rst media: cec: rename pin events/function 2017-08-20 08:14:03 -04:00
cec-ioc-adap-g-log-addrs.rst media: cec uapi: Adjust table sizes for PDF output 2017-09-05 06:27:28 -04:00
cec-ioc-adap-g-phys-addr.rst [media] cec: document the error codes 2017-03-22 11:12:34 -03:00
cec-ioc-dqevent.rst media: cec-ioc-dqevent.rst: document the new 5V events 2018-07-25 06:59:02 -04:00
cec-ioc-g-mode.rst media: cec uapi: Adjust table sizes for PDF output 2017-09-05 06:27:28 -04:00
cec-ioc-receive.rst media: cec: add new tx/rx status bits to detect aborts/timeouts 2018-10-05 11:22:39 -04:00
cec-pin-error-inj.rst media: cec-pin-error-inj.rst: document CEC Pin Error Injection 2018-03-22 08:54:21 -04:00