OSDN Git Service

media: ccs: Fix obtaining bus information from firmware
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 30 Sep 2020 16:20:42 +0000 (18:20 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Dec 2020 09:47:13 +0000 (10:47 +0100)
commit9f65192d8d256dcac99a81c8129234b999704772
tree566b5f7973dcef22b74b60e4db6e3015cbd63635
parent7b1dd0f85013c33d5eba1f69503bf29c8e17131e
media: ccs: Fix obtaining bus information from firmware

Let v4l2_fwnode_endpoint_alloc_parse to figure out the type of the data
bus. As the old bindings did not require the "bus-type" property, we need
to rely on guessing between CSI-2 D-PHY and CCP2. Setting the type to
CSI-2 D-PHY will parse just that and succeed even if no data-lanes are
set.

Also add a comment on the matter to the driver to avoid breaking this in
the future.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-core.c