media: ti-vpe: cal: fix dummy read to phy
After ComplexIO reset, a dummy read to PHY is needed as per CAL spec to finish the reset. Currently the driver reads a ComplexIO register, not PHY register. Fix this. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
f77f2e1f29
commit
c1075243e5
|
@ -796,8 +796,8 @@ static void csi2_phy_init(struct cal_ctx *ctx)
|
|||
ctx->csi2_port,
|
||||
reg_read(ctx->dev, CAL_CSI2_COMPLEXIO_CFG(ctx->csi2_port)));
|
||||
|
||||
/* Dummy read to allow SCP to complete */
|
||||
val = reg_read(ctx->dev, CAL_CSI2_COMPLEXIO_CFG(ctx->csi2_port));
|
||||
/* Dummy read to allow SCP reset to complete */
|
||||
reg_read(ctx->cc, CAL_CSI2_PHY_REG0);
|
||||
|
||||
/* 3.A. Program Phy Timing Parameters */
|
||||
csi2_phy_config(ctx);
|
||||
|
|
Loading…
Reference in New Issue