media: imx6-mipi-csi2: Call remote subdev get_mbus_config to get active lanes
authorEzequiel Garcia <ezequiel@collabora.com>
Sat, 16 Jan 2021 16:40:38 +0000 (17:40 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 13:43:36 +0000 (14:43 +0100)
commit9d3b7ca42d6f70556c10ce3f6bdb32457077d947
tree7f21e542ee4aaa83a64037459d2040d6806726e9
parentb05bb3bfa583dd9ea6f8b255b55d0d97d8ba370d
media: imx6-mipi-csi2: Call remote subdev get_mbus_config to get active lanes

Currently, the CSI2 subdevice is using the data-lanes from the
neareast endpoint to config the CSI2 lanes.

While this may work, the proper way to configure the hardware is
to obtain the remote subdevice in v4l2_async_notifier_operations.bound(),
and then call get_mbus_config using the remote subdevice to get
the active lanes.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx6-mipi-csi2.c