media: cec: core: avoid confusing "transmit timed out" message
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 30 Apr 2024 10:13:47 +0000 (11:13 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 2 May 2024 18:01:00 +0000 (19:01 +0100)
commitcbe499977bc36fedae89f0a0d7deb4ccde9798fe
treed3559859279bed6b27143c880583279713c1080c
parent47c82aac10a6954d68f29f10d9758d016e8e5af1
media: cec: core: avoid confusing "transmit timed out" message

If, when waiting for a transmit to finish, the wait is interrupted,
then you might get a "transmit timed out" message, even though the
transmit was interrupted and did not actually time out.

Set transmit_in_progress_aborted to true if the
wait_for_completion_killable() call was interrupted and ensure
that the transmit is properly marked as ABORTED.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Yang, Chenyuan <cy54@illinois.edu>
Closes: https://lore.kernel.org/linux-media/PH7PR11MB57688E64ADE4FE82E658D86DA09EA@PH7PR11MB5768.namprd11.prod.outlook.com/
Fixes: 590a8e564c6e ("media: cec: abort if the current transmit was canceled")
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/cec/core/cec-adap.c