Patch "media: exynos4-is: don't rely on the v4l2_async_subdev internals" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    media: exynos4-is: don't rely on the v4l2_async_subdev internals

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     media-exynos4-is-don-t-rely-on-the-v4l2_async_subdev.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 16f6d9c174885ff7282701e32d5ac860791d4cf5
Author: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
Date:   Fri Sep 23 11:42:01 2022 +0200

    media: exynos4-is: don't rely on the v4l2_async_subdev internals
    
    [ Upstream commit f98a5c2e1c4396488c27274ba82afc11725a4bcc ]
    
    Commit 1f391df44607 ("media: v4l2-async: Use endpoints in
    __v4l2_async_nf_add_fwnode_remote()") changed the data that is stored in
    the v4l2_async_subdev internals from the fwnode pointer to the parent
    device to the fwnode pointer to the matched endpoint. This broke the
    sensor matching code, which relied on the particular fwnode data in the
    v4l2_async_subdev internals. Fix this by simply matching the
    v4l2_async_subdev pointer, which is already available there.
    
    Reported-by: Daniel Scally <djrscally@xxxxxxxxx>
    Fixes: fa91f1056f17 ("[media] exynos4-is: Add support for asynchronous subdevices registration")
    Signed-off-by: Marek Szyprowski <m.szyprowski@xxxxxxxxxxx>
    Reviewed-by: Daniel Scally <djrscally@xxxxxxxxx>
    Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c
index 3d877c5ae290..8603c578f55f 100644
--- a/drivers/media/platform/exynos4-is/media-dev.c
+++ b/drivers/media/platform/exynos4-is/media-dev.c
@@ -1378,9 +1378,7 @@ static int subdev_notifier_bound(struct v4l2_async_notifier *notifier,
 
 	/* Find platform data for this sensor subdev */
 	for (i = 0; i < ARRAY_SIZE(fmd->sensor); i++)
-		if (fmd->sensor[i].asd &&
-		    fmd->sensor[i].asd->match.fwnode ==
-		    of_fwnode_handle(subdev->dev->of_node))
+		if (fmd->sensor[i].asd == asd)
 			si = &fmd->sensor[i];
 
 	if (si == NULL)



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux