]> git.baikalelectronics.ru Git - kernel.git/commit
media: cec-adap.c: stop trying LAs on CEC_TX_STATUS_TIMEOUT
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 6 May 2022 07:39:22 +0000 (09:39 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 09:28:35 +0000 (11:28 +0200)
commitecc2ee3bbfea94b453a84a4635add1c0a3374a27
tree679a9658fef3a1a3b722c475f4475983dec8780a
parent3f9724d24dd01b73f5e1166899ea8bdbc144a384
media: cec-adap.c: stop trying LAs on CEC_TX_STATUS_TIMEOUT

If, while trying to claim a free logical address, a POLL message
times out, then abort this process. A CEC_TX_STATUS_TIMEOUT
should be handled the same as a CEC_TX_STATUS_ABORTED.

This avoids a situation where transmits time out due to a
driver or hardware bug and it takes ages before the attempt
to find available free logical addresses finishes.

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