media: imx: imx7_mipi_csis: Ensure pads are connected
The CSI-2 receiver requires both its sink pad and its source pad to be connected through enabled links in order to be started. Ensure this by setting the MEDIA_PAD_FL_MUST_CONNECT flag on both pads. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
a791960d2d
commit
33f643817f
@ -1065,8 +1065,10 @@ static int mipi_csis_subdev_init(struct v4l2_subdev *mipi_sd,
|
|||||||
|
|
||||||
v4l2_set_subdevdata(mipi_sd, &pdev->dev);
|
v4l2_set_subdevdata(mipi_sd, &pdev->dev);
|
||||||
|
|
||||||
state->pads[CSIS_PAD_SINK].flags = MEDIA_PAD_FL_SINK;
|
state->pads[CSIS_PAD_SINK].flags = MEDIA_PAD_FL_SINK
|
||||||
state->pads[CSIS_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE;
|
| MEDIA_PAD_FL_MUST_CONNECT;
|
||||||
|
state->pads[CSIS_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE
|
||||||
|
| MEDIA_PAD_FL_MUST_CONNECT;
|
||||||
return media_entity_pads_init(&mipi_sd->entity, CSIS_PADS_NUM,
|
return media_entity_pads_init(&mipi_sd->entity, CSIS_PADS_NUM,
|
||||||
state->pads);
|
state->pads);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user