OSDN Git Service

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)
commitdad272bd03d541dc7c0ff8331756eccf659f6f02
tree55002517ee58b428922c25108f1e09b07e00b67d
parente2ed5024ac2bc27d4bfc99fd58f5ab54de8fa965
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