]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec: add xfer_timeout_ms field
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 13 Nov 2021 11:05:24 +0000 (11:05 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 06:41:06 +0000 (07:41 +0100)
commit265421d9e9b4e3b060580f2dcf096b83173b7921
tree55002517ee58b428922c25108f1e09b07e00b67d
parent31ac195e3a941a5ba36e851ce9a4423bba331bd0
media: cec: add xfer_timeout_ms field

Allow drivers to change the transmit timeout value, i.e. after how
long should a transmit be considered 'lost', i.e. the corresponding
cec_transmit_done_ts was never called.

Some CEC devices have their own timeout, and so this timeout value must be
longer than that hardware timeout value. If it is shorter then the
framework would consider the transmit lost, even though it is effectively
still in progress at the hardware level.

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
drivers/media/cec/core/cec-core.c
include/media/cec.h