2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/drivers/media/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-adap.c media: cec: add new tx/rx status bits to detect aborts/timeouts 2018-10-05 11:22:39 -04:00
cec-api.c media: cec: integrate cec_validate_phys_addr() in cec-api.c 2018-09-24 09:11:01 -04:00
cec-core.c media: use strscpy() instead of strlcpy() 2018-09-11 13:32:17 -04:00
cec-notifier.c media: cec-notifier: Get notifier by device and connector name 2018-07-13 08:44:16 +01:00
cec-pin-error-inj.c media: cec-pin-error-inj: avoid a false-positive Spectre detection 2018-05-28 16:11:17 -04:00
cec-pin-priv.h media: cec: improve CEC pin event handling 2018-03-22 08:16:52 -04:00
cec-pin.c media: cec: set ev rather than v with CEC_PIN_EVENT_FL_DROPPED bit 2018-04-20 08:37:35 -04:00
cec-priv.h media: cec: add SPDX license info 2018-02-14 13:16:03 -05:00
Kconfig media: cec-pin-error-inj: parse/show error injection 2018-03-22 08:00:59 -04:00
Makefile media: cec: remove cec-edid.c 2018-09-24 09:11:06 -04:00