On Tue Jul 21 21:01:19 2026 +0200, Alain Volmat wrote:
> The function media_entity_get_fwnode_pad is called in order to
> retrieve the remote pad, which is the source of the CSI.
> However this function is expecting the sensor endpoint fwnode
> and not sensor device fwnode as it is currently given.
> Correct this by properly relying on the notified matched fwnode
> data instead of the subdev entity fwnode.
> 
> Cc: [email protected]
> Fixes: dcb0f4c16be5 ("media: stm32: csi: addition of the STM32 CSI driver")
> Signed-off-by: Alain Volmat <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/platform/st/stm32/stm32-csi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/media/platform/st/stm32/stm32-csi.c 
b/drivers/media/platform/st/stm32/stm32-csi.c
index fd2b6dfbd44c..ecd0ed8e76b5 100644
--- a/drivers/media/platform/st/stm32/stm32-csi.c
+++ b/drivers/media/platform/st/stm32/stm32-csi.c
@@ -825,7 +825,7 @@ static int stm32_csi_async_bound(struct v4l2_async_notifier 
*notifier,
        int remote_pad;
 
        remote_pad = media_entity_get_fwnode_pad(&s_subdev->entity,
-                                                s_subdev->fwnode,
+                                                asd->match.fwnode,
                                                 MEDIA_PAD_FL_SOURCE);
        if (remote_pad < 0) {
                dev_err(csidev->dev, "Couldn't find output pad for subdev %s\n",
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to