mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 23:51:46 +00:00
media: imx-csi: Input connections to CSI should be optional
Some imx platforms do not have fwnode connections to all CSI input
ports, and should not be treated as an error. This includes the
imx6q SabreAuto, which has no connections to ipu1_csi1 and ipu2_csi0.
Return -ENOTCONN in imx_csi_parse_endpoint() so that v4l2-fwnode
endpoint parsing will not treat an unconnected CSI input port as
an error.
Fixes: c893500a16
("media: imx: csi: Register a subdev notifier")
Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Tim Harvey <tharvey@gateworks.com>
Cc: stable@vger.kernel.org
Tested-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
54f4bc2f2a
commit
337e90ed02
@ -1865,7 +1865,7 @@ static int imx_csi_parse_endpoint(struct device *dev,
|
||||
struct v4l2_fwnode_endpoint *vep,
|
||||
struct v4l2_async_subdev *asd)
|
||||
{
|
||||
return fwnode_device_is_available(asd->match.fwnode) ? 0 : -EINVAL;
|
||||
return fwnode_device_is_available(asd->match.fwnode) ? 0 : -ENOTCONN;
|
||||
}
|
||||
|
||||
static int imx_csi_async_register(struct csi_priv *priv)
|
||||
|
Loading…
Reference in New Issue
Block a user