]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: qcom: camss: csid: Only add TPG v4l2 ctrl if TPG hardware is available
authorDepeng Shao <quic_depengs@quicinc.com>
Mon, 13 Jan 2025 04:31:28 +0000 (10:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2025 09:13:37 +0000 (11:13 +0200)
commite41275b8f73ecda30c8a2ead22d1c37ae7e57f14
treec222bc521ee0d98042c37bf84f20cd6bda0f0c7d
parented90e5a57add6d3591dcf61f46add9e7261ecfd8
media: qcom: camss: csid: Only add TPG v4l2 ctrl if TPG hardware is available

[ Upstream commit 2f1361f862a68063f37362f1beb400e78e289581 ]

There is no CSID TPG on some SoCs, so the v4l2 ctrl in CSID driver
shouldn't be registered. Checking the supported TPG modes to indicate
if the TPG hardware exists or not and only registering v4l2 ctrl for
CSID only when the TPG hardware is present.

Signed-off-by: Depeng Shao <quic_depengs@quicinc.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/qcom/camss/camss-csid.c