Patch "media: mt9p031: Drop bogus v4l2_subdev_get_try_crop() call from mt9p031_init_cfg()" has been added to the 6.0-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: mt9p031: Drop bogus v4l2_subdev_get_try_crop() call from mt9p031_init_cfg()

to the 6.0-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-mt9p031-drop-bogus-v4l2_subdev_get_try_crop-ca.patch
and it can be found in the queue-6.0 subdirectory.

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



commit b7b0331d14898f286ab994548b973bcad0a87a79
Author: Marek Vasut <marex@xxxxxxx>
Date:   Sun Nov 20 14:13:04 2022 +0000

    media: mt9p031: Drop bogus v4l2_subdev_get_try_crop() call from mt9p031_init_cfg()
    
    [ Upstream commit e208ad015f9310a87b4bb1ba1e4d3e347f391aa4 ]
    
    The mt9p031_init_cfg() already calls __mt9p031_get_pad_crop(), which
    correctly calls v4l2_subdev_get_try_crop() on V4L2_SUBDEV_FORMAT_TRY
    or returns &mt9p031->crop on V4L2_SUBDEV_FORMAT_ACTIVE. No need to
    call v4l2_subdev_get_try_crop() in mt9p031_init_cfg() again in case
    of both V4L2_SUBDEV_FORMAT_TRY and V4L2_SUBDEV_FORMAT_ACTIVE.
    
    This also fixes a splat generated by this call since commit
    2ba3e38517f5a ("media: v4l: subdev: Fail graciously when getting try data for NULL state")
    because v4l2_subdev_get_try_crop() is called with sd_state = NULL
    in mt9p031_init_cfg().
    
    Fixes: 69681cd041648 ("media: mt9p031: Move open subdev op init code into init_cfg")
    Signed-off-by: Marek Vasut <marex@xxxxxxx>
    Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
    Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/media/i2c/mt9p031.c b/drivers/media/i2c/mt9p031.c
index 1fd4dc6e4726..92f4e184353f 100644
--- a/drivers/media/i2c/mt9p031.c
+++ b/drivers/media/i2c/mt9p031.c
@@ -702,7 +702,6 @@ static int mt9p031_init_cfg(struct v4l2_subdev *subdev,
 					     V4L2_SUBDEV_FORMAT_TRY;
 
 	crop = __mt9p031_get_pad_crop(mt9p031, sd_state, 0, which);
-	v4l2_subdev_get_try_crop(subdev, sd_state, 0);
 	crop->left = MT9P031_COLUMN_START_DEF;
 	crop->top = MT9P031_ROW_START_DEF;
 	crop->width = MT9P031_WINDOW_WIDTH_DEF;



[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