]> 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)
commit3223e10ab1bfbda1dcacf1911c732f6bd8875ea1
tree55002517ee58b428922c25108f1e09b07e00b67d
parent55bdbc1b8b6f84aeedb270a6093514d883f58c0c
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