media: v4l: async: Simplify async sub-device fwnode matching
authorSakari Ailus <sakari.ailus@linux.intel.com>
Sat, 18 Feb 2023 23:21:02 +0000 (00:21 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 28 Jul 2023 08:43:08 +0000 (10:43 +0200)
commit1029939b3782235a8d15f90c34d585585c1a6d14
tree36414a91f9df439931110ea408ebe902c8ed1927
parentb6d42c35c03dc1a0e5c2800c2137017a62ee58f9
media: v4l: async: Simplify async sub-device fwnode matching

V4L2 async sub-device matching originally used the device nodes only.
Endpoint nodes were taken into use instead as using the device nodes was
problematic for it was in some cases ambiguous which link might have been
in question.

There is however no need to use endpoint nodes on both sides, as the async
sub-device's fwnode can always be trivially obtained using
fwnode_graph_get_remote_endpoint() when needed while what counts is
whether or not the link is between two device nodes, i.e. the device nodes
match.

This will briefly break the adv748x driver but it will be fixed later in
the set, by patch "media: adv748x: Return to endpoint matching".

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de> # imx6qp
Tested-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> # rcar + adv746x
Tested-by: Aishwarya Kothari <aishwarya.kothari@toradex.com> # Apalis i.MX6Q with TC358743
Tested-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> # Renesas RZ/G2L SMARC
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/adv748x/adv748x-csi2.c
drivers/media/i2c/max9286.c
drivers/media/i2c/rdacm20.c
drivers/media/i2c/rdacm21.c
drivers/media/i2c/tc358746.c
drivers/media/platform/nxp/imx-mipi-csis.c
drivers/media/v4l2-core/v4l2-async.c