media: rcar-csi2: Negotiate data lanes number
authorJacopo Mondi <jacopo+renesas@jmondi.org>
Fri, 17 Jul 2020 14:53:24 +0000 (16:53 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 18 Aug 2020 13:53:03 +0000 (15:53 +0200)
commit5cef0785362edf51f2a8cc30d5b8e9fa128d1a66
tree4061d8ce2939a776c2bc6384cc593990e4ccb86e
parenta61b1b5d41735ba9ba8954471f21a65b9a8d07e9
media: rcar-csi2: Negotiate data lanes number

Use the newly introduced get_mbus_config() subdevice pad operation to
retrieve the remote subdevice MIPI CSI-2 bus configuration and configure
the number of active data lanes accordingly.

In order to be able to call the remote subdevice operation cache the
index of the remote pad connected to the single CSI-2 input port.

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-csi2.c