]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf91a9dbbb5a9c3e4348a87a35685df554d805191
tree4061d8ce2939a776c2bc6384cc593990e4ccb86e
parenta8b692949f09677d4740d57e328fa9abf7ccd08f
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