media: cec: core: count low-drive, error and arb-lost conditions
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 11 Oct 2023 08:17:59 +0000 (10:17 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 23 Nov 2023 11:59:24 +0000 (12:59 +0100)
commit632b8b044a940e415c6d9bd5235778b0db28add1
tree879ce71e7763b96600414dbcebd810bed7283c25
parentbbd267daf4fc831f58bf4a2530a8b64881779e6a
media: cec: core: count low-drive, error and arb-lost conditions

Count how many Low Drive, Error and Arbitration Lost transmit
status errors occurred, and expose that in debugfs.

Also log the first 8 transmits that result in Low Drive or Error
conditions. That really should not happen with well-behaved CEC devices
and good HDMI cables.

This is useful to detect and debug HDMI cable issues.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/cec/core/cec-adap.c
include/media/cec.h