mbox series

[0/4] media: sunxi: MIPI CSI-2 controllers link fixups

Message ID 20220909133954.97010-1-paul.kocialkowski@bootlin.com
Headers show
Series media: sunxi: MIPI CSI-2 controllers link fixups | expand

Message

Paul Kocialkowski Sept. 9, 2022, 1:39 p.m. UTC
Fix the MIPI CSI-2 drivers to correctly check enabled links and to
register their subdev even without a sensor attached. This allows
their parent driver to register in that situation and makes it
possible to use a parallel sensor when both parallel and MIPI CSI-2
are fed to the same controller but no sensor is connected to the
MIPI CSI-2 bridge.

With this change, it becomes possible to always describe the links
between the CSI and MIPI CSI-2 blocks in device-tree.

This series is based atop Christophe JAILLET's fixes at:
https://patchwork.kernel.org/project/linux-media/list/?series=670059

Paul Kocialkowski (4):
  media: sun6i-mipi-csi2: Require both pads to be connected for
    streaming
  media: sun8i-a83t-mipi-csi2: Require both pads to be connected for
    streaming
  media: sun6i-mipi-csi2: Register async subdev with no sensor attached
  media: sun8i-a83t-mipi-csi2: Register async subdev with no sensor
    attached

 .../sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c   | 23 +++++++++++++------
 .../sun8i_a83t_mipi_csi2.c                    | 23 +++++++++++++------
 2 files changed, 32 insertions(+), 14 deletions(-)