media: cadence: csi2rx: use match fwnode for media link
BugLink: https://bugs.launchpad.net/bugs/2060097 [ Upstream commit 448699c522af9e3266f168c3f51f4c3713c7bee1 ] Since commit1029939b37("media: v4l: async: Simplify async sub-device fwnode matching"), async connections are matched using the async sub-device fwnode, not that of the endpoint. Fix this by using the fwnode of the connection match to find the pad. Fixes:1029939b37("media: v4l: async: Simplify async sub-device fwnode matching") Signed-off-by: Julien Massot <julien.massot@collabora.com> Reviewed-by: Jai Luthra <j-luthra@ti.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit b9544352daf29bdf408538672825529c108ee39f) Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
committed by
Roxana Nicolescu
parent
248f4f2ebb
commit
7581f8dfd6
@@ -468,7 +468,7 @@ static int csi2rx_async_bound(struct v4l2_async_notifier *notifier,
|
||||
struct csi2rx_priv *csi2rx = v4l2_subdev_to_csi2rx(subdev);
|
||||
|
||||
csi2rx->source_pad = media_entity_get_fwnode_pad(&s_subdev->entity,
|
||||
s_subdev->fwnode,
|
||||
asd->match.fwnode,
|
||||
MEDIA_PAD_FL_SOURCE);
|
||||
if (csi2rx->source_pad < 0) {
|
||||
dev_err(csi2rx->dev, "Couldn't find output pad for subdev %s\n",
|
||||
|
||||
Reference in New Issue
Block a user