Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: qcom: camss: Fix set CSI2_RX_CFG1_VC_MODE when VC is greater than 3

VC_MODE = 0 implies a two bit VC address.
VC_MODE = 1 is required for VCs with a larger address than two bits.

Fixes: eebe6d00e9bf ("media: camss: Add support for CSID hardware version Titan 170")
Cc: stable@vger.kernel.org
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>

authored by

Bryan O'Donoghue and committed by
Hans Verkuil
e655d1ae d8f7e1a6

+2
+2
drivers/media/platform/qcom/camss/camss-csid-gen2.c
··· 449 449 writel_relaxed(val, csid->base + CSID_CSI2_RX_CFG0); 450 450 451 451 val = 1 << CSI2_RX_CFG1_PACKET_ECC_CORRECTION_EN; 452 + if (vc > 3) 453 + val |= 1 << CSI2_RX_CFG1_VC_MODE; 452 454 val |= 1 << CSI2_RX_CFG1_MISR_EN; 453 455 writel_relaxed(val, csid->base + CSID_CSI2_RX_CFG1); 454 456