]> git.baikalelectronics.ru Git - kernel.git/commit
media: v4l2-fwnode: Defaults may not override endpoint configuration in firmware
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 1 Mar 2019 13:48:38 +0000 (08:48 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 20 Mar 2019 10:34:37 +0000 (06:34 -0400)
commitc42bcce1b0e75b13f0558c1fc377d1eb2f2a6bb5
treedecc97f794366c5272e2cd472bd106877af5f5de
parent802974c07a4f7a9c4b8abdf67afa67cfcd201326
media: v4l2-fwnode: Defaults may not override endpoint configuration in firmware

The lack of defaults provided by the caller to
v4l2_fwnode_endpoint_parse() signals the use of the default lane mapping.
The default lane mapping must not be used however if the firmmare contains
the lane mapping. Disable the default lane mapping in that case, and
improve the debug messages telling of the use of the defaults.

This was missed previously since the default mapping will only unsed in
this case if the bus type is set, and no driver did both while still
needing the lane mapping configuration.

Fixes: 9c0efb8e9647 ("media: v4l: fwnode: Support default CSI-2 lane mapping for drivers")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-fwnode.c