media: v4l2-core: v4l2-async: Check sd->fwnode->secondary in match_fwnode()
authorDaniel Scally <djrscally@gmail.com>
Thu, 7 Jan 2021 13:28:35 +0000 (14:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 26 Jan 2021 18:31:39 +0000 (19:31 +0100)
commit06c85233121fabc69ffe6124953cd5304dbf3afd
treebe6958062bc01c4800823200815f51c4addea445
parentacec1ff638a636f95a68271ca9b60c670a023d74
media: v4l2-core: v4l2-async: Check sd->fwnode->secondary in match_fwnode()

Where the fwnode graph is comprised of software_nodes, these will be
assigned as the secondary to dev->fwnode. Check the v4l2_subdev's fwnode
for a secondary and attempt to match against it during match_fwnode() to
accommodate that possibility.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/v4l2-core/v4l2-async.c