]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: tc358743: ignore video while HPD is low
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 1 Apr 2025 09:54:17 +0000 (11:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:30 +0000 (11:05 +0100)
commit7a209e4b6b2a93ed609e19d280cefafc02f14f0a
treee6e5b4fb54dd09cd6fb06a5057f78a4027d2e56e
parentba5026e805cb7a7c37ad38d9e1c34ddd0a96787f
media: tc358743: ignore video while HPD is low

[ Upstream commit 6829c5b5d26b1be31880d74ec24cb32d2d75f1ae ]

If the HPD is low (happens if there is no EDID or the
EDID is being updated), then return -ENOLINK in
tc358743_get_detected_timings() instead of detecting video.

This avoids userspace thinking that it can start streaming when
the HPD is low.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Tested-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/linux-media/20240628-stoic-bettong-of-fortitude-e25611@houat/
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/i2c/tc358743.c