mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
media: cadence: csi2rx: use match fwnode for media link
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>
This commit is contained in:
parent
dcef3ed5b0
commit
448699c522
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user