media: sun8i-a83t-mipi-csi2: Require both pads to be connected for streaming
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 9 Sep 2022 13:39:52 +0000 (14:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:17 +0000 (13:32 +0100)
commit6c1c8499cdb627c43ab1fe51436f185e39157588
tree3c2c6c0465d85d22dcd3767dacd98acc97fc8a1b
parentdaf248d2d6a52e195cc9570ab30656b85992e9fa
media: sun8i-a83t-mipi-csi2: Require both pads to be connected for streaming

[ Upstream commit 8985fc724ba89d9b00694304b3f9faf69f4073d0 ]

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: 576d196c522b ("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>
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c