]> git.baikalelectronics.ru Git - kernel.git/commit
media: camss: Do vfe_get/vfe_put for csid on sm8250
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Wed, 22 Dec 2021 00:37:50 +0000 (01:37 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:41 +0000 (21:18 +0100)
commitd32c79fc21c0de9e211c01a43a027ba4813f3aa9
treeee72b83f6c024c38e7e14cf46d9a195cdef7e9c5
parent59baa21a7ced05c004b68a6e8080b6012620f1d5
media: camss: Do vfe_get/vfe_put for csid on sm8250

The sm8250 CAMSS CSID depends on the VFE it is attached to being powered on
and clocked prior to taking the CSID out of reset.

It is possible to open just the CSID subdev from libcamera and attempt to
bring the CSID block up.

If we do not first bring up the VFE the CSID will fail to come out of
reset.

Tested-by: Julian Grahsl <jgrahsl@snap.com>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/qcom/camss/camss-csid.c
drivers/media/platform/qcom/camss/camss-vfe.c
drivers/media/platform/qcom/camss/camss-vfe.h