media: camss: ispif: Correctly reset based on the VFE ID
authorAngeloGioacchino Del Regno <kholk11@gmail.com>
Thu, 22 Oct 2020 17:47:00 +0000 (19:47 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 25 Nov 2020 13:54:07 +0000 (14:54 +0100)
commit864ed874d74a36e9b708e41c98cf791bb7786507
tree717129ec79f66f1ad4ff520a63ddb253c011d9e0
parentcea357bc25713f909bd9d6f0d71eae5e3a5b4e85
media: camss: ispif: Correctly reset based on the VFE ID

Resetting the ISPIF VFE0 context is wrong if we are using the VFE1
for dual-camera or simply because a secondary camera is connected
to it: in this case the reset will always happen on the VFE0 ctx
of the ISPIF, which is .. useless.

Fix this usecase by adding the ISPIF_RST_CMD_1 address and choose
where to do the (or what to) reset based on the VFE line id.

Signed-off-by: AngeloGioacchino Del Regno <kholk11@gmail.com>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/qcom/camss/camss-ispif.c
drivers/media/platform/qcom/camss/camss-ispif.h