media: sun6i-mipi-csi2: Register async subdev with no sensor attached
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 9 Sep 2022 13:39:53 +0000 (14:39 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 25 Nov 2022 11:15:29 +0000 (11:15 +0000)
commit67182951f1dde5a88479cf8befee5f32ea014a49
treef2c2445ba723239d65b48410a46a69f35243802f
parent8985fc724ba89d9b00694304b3f9faf69f4073d0
media: sun6i-mipi-csi2: Register async subdev with no sensor attached

This allows the device to probe and register its async subdev without
a sensor attached.

The rationale is that the parent driver might otherwise wait for the
subdev to be registered when it should be available (from the fwnode
graph endpoint perspective). This is generally not problematic when
the MIPI CSI-2 bridge is the only device attached to the parent, but
in the case of a CSI controller that can feed from both MIPI CSI-2
and parallel, it would prevent using the parallel sensor due to the
parent waiting for the MIPI CSI-2 subdev to register.

Fixes: af54b4f4c17f ("media: sunxi: Add support for the A31 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>
drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c