]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite9232141f40d5f17e2e15b1619ec16bd9ab57030
tree2ca92eaa2249eccd4e5d1c9e20daf6b354f0038a
parenta42cb394aca4c682a10733af0e6294c227204438
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