]> asedeno.scripts.mit.edu Git - linux.git/commit
media: v4l: fwnode: Detect bus type correctly
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 31 Jul 2018 10:43:14 +0000 (06:43 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 4 Oct 2018 20:09:37 +0000 (16:09 -0400)
commit2835b5b15370ff1ed7671fd42e15c6e1ac0d1ebc
treea6123079c122b3ecccdb77cf6cb2cf11525f1b6c
parent6970d37cc97d77189d775fd16d47b2ac87d0e757
media: v4l: fwnode: Detect bus type correctly

In case the device supports multiple video bus types on an endpoint, the
V4L2 fwnode framework attempts to detect the type based on the available
information. This wasn't working really well, and sometimes could lead to
the V4L2 fwnode endpoint struct as being mishandled between the bus types.

Default to Bt.656 if no properties suggesting a bus type are found.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Tested-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-fwnode.c
include/media/v4l2-mediabus.h