media: cec: core: don't set last_initiator if tx in progress
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 24 Apr 2023 15:07:28 +0000 (16:07 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 26 May 2023 09:52:22 +0000 (10:52 +0100)
commit73af6c7511038249cad3d5f3b44bf8d78ac0f499
tree494dda03233dfc47f507324b1cc0a1b814699792
parentfe4526d99e2e06b08bb80316c3a596ea6a807b75
media: cec: core: don't set last_initiator if tx in progress

When a message was received the last_initiator is set to 0xff.
This will force the signal free time for the next transmit
to that for a new initiator. However, if a new transmit is
already in progress, then don't set last_initiator, since
that's the initiator of the current transmit. Overwriting
this would cause the signal free time of a following transmit
to be that of the new initiator instead of a next transmit.

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