mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-29 14:05:19 +08:00
media: qcom: camss: Fix set CSI2_RX_CFG1_VC_MODE when VC is greater than 3
[ Upstream commite655d1ae97
] VC_MODE = 0 implies a two bit VC address. VC_MODE = 1 is required for VCs with a larger address than two bits. Fixes:eebe6d00e9
("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f001e6f626
commit
ceb5276d8c
@ -442,6 +442,8 @@ static void __csid_configure_stream(struct csid_device *csid, u8 enable, u8 vc)
|
||||
writel_relaxed(val, csid->base + CSID_CSI2_RX_CFG0);
|
||||
|
||||
val = 1 << CSI2_RX_CFG1_PACKET_ECC_CORRECTION_EN;
|
||||
if (vc > 3)
|
||||
val |= 1 << CSI2_RX_CFG1_VC_MODE;
|
||||
val |= 1 << CSI2_RX_CFG1_MISR_EN;
|
||||
writel_relaxed(val, csid->base + CSID_CSI2_RX_CFG1); // csi2_vc_mode_shift_val ?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user