media: cec-pin: fix off-by-one SFT check
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 11 Aug 2021 11:36:54 +0000 (13:36 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:54 +0000 (10:07 +0200)
commit7e360fa0c0f3e7dd1aa8f2b574d7b461d0caf5e2
tree2ca92eaa2249eccd4e5d1c9e20daf6b354f0038a
parent8515965e5e33f4feb56134348c95953f3eadfb26
media: cec-pin: fix off-by-one SFT check

The CEC pin framework has to wait for the CEC bus to be idle for the
requested Signal Free Time before it can start a transmit.

However, the check for that was off by one, so transmits would start one
bit period (2.4ms) too late.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/cec/core/cec-pin.c