]> 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>
Wed, 4 Jun 2025 12:38:03 +0000 (14:38 +0200)
commit4d20b4a861afebfe9cd518fc9c58bc32ea73e27b
tree9a2f25aee1b9af89f4d68cd0dce5861ce6bb8cc2
parenteae500bc8dccd30d11354c54b21f400f0f7da0cb
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