media: cec-gpio: select correct Signal Free Time
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 5 Oct 2018 12:51:45 +0000 (08:51 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:20:25 +0000 (08:20 +0100)
commit35c8125cbea4b668f87e1286cbbf26d3810e4408
tree5760fd8e0d92a427c6c1632781534fda0af9f1f8
parent58d0a3dbad2b66144e6c8150f0a45807e14c8297
media: cec-gpio: select correct Signal Free Time

[ Upstream commit c439d5c1e13dbf66cff53455432f21d4d0536c51 ]

If a receive is in progress or starts before the transmit has
a chance, then lower the Signal Free Time of the upcoming transmit
to no more than CEC_SIGNAL_FREE_TIME_NEW_INITIATOR.

This is per the specification requirements.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/cec/cec-pin.c