aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/cadence/cdns-csi2rx.c
diff options
context:
space:
mode:
authorJulien Massot <julien.massot@collabora.com>2024-01-05 10:00:21 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-01-22 17:23:58 +0100
commit448699c522af9e3266f168c3f51f4c3713c7bee1 (patch)
treee683521d74fe2d003bebf294eb80f53391fe5ce2 /drivers/media/platform/cadence/cdns-csi2rx.c
parentstaging: media: ipu3: Remove some excess struct member documentation (diff)
downloadlinux-448699c522af9e3266f168c3f51f4c3713c7bee1.tar.gz
linux-448699c522af9e3266f168c3f51f4c3713c7bee1.zip
media: cadence: csi2rx: use match fwnode for media link
Since commit 1029939b3782 ("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: 1029939b3782 ("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>
Diffstat (limited to 'drivers/media/platform/cadence/cdns-csi2rx.c')
-rw-r--r--drivers/media/platform/cadence/cdns-csi2rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/cadence/cdns-csi2rx.c b/drivers/media/platform/cadence/cdns-csi2rx.c
index fead5426830e..0ea5fa956fe9 100644
--- a/drivers/media/platform/cadence/cdns-csi2rx.c
+++ b/drivers/media/platform/cadence/cdns-csi2rx.c
@@ -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",