mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
media: sun8i-a83t-mipi-csi2: Require both pads to be connected for streaming
[ Upstream commit8985fc724b] The bridge needs both its pads connected to be able to stream data. Enforcing this is useful to produce an error when no sensor is connected. Fixes:576d196c52("media: sunxi: Add support for the A83T MIPI CSI-2 controller") Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
daf248d2d6
commit
6c1c8499cd
|
|
@ -557,8 +557,10 @@ sun8i_a83t_mipi_csi2_bridge_setup(struct sun8i_a83t_mipi_csi2_device *csi2_dev)
|
|||
|
||||
/* Media Pads */
|
||||
|
||||
pads[SUN8I_A83T_MIPI_CSI2_PAD_SINK].flags = MEDIA_PAD_FL_SINK;
|
||||
pads[SUN8I_A83T_MIPI_CSI2_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE;
|
||||
pads[SUN8I_A83T_MIPI_CSI2_PAD_SINK].flags = MEDIA_PAD_FL_SINK |
|
||||
MEDIA_PAD_FL_MUST_CONNECT;
|
||||
pads[SUN8I_A83T_MIPI_CSI2_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE |
|
||||
MEDIA_PAD_FL_MUST_CONNECT;
|
||||
|
||||
ret = media_entity_pads_init(&subdev->entity,
|
||||
SUN8I_A83T_MIPI_CSI2_PAD_COUNT, pads);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user