media: i2c: imx219: Move out locking/unlocking of vflip and hflip controls from imx21...
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Thu, 11 Mar 2021 09:52:04 +0000 (10:52 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 6 Apr 2021 12:37:49 +0000 (14:37 +0200)
commit745d4612d2c853c00abadbf69799c8aee7f99c39
treebce105b9edf69dbc438fd120786eef3402a05249
parent15786f7b564eff32d8dae73d40d77dc4e3c7298f
media: i2c: imx219: Move out locking/unlocking of vflip and hflip controls from imx219_set_stream

Move out locking/unlocking of vflip and hflip controls from
imx219_set_stream() to the imx219_start_streaming()/
imx219_stop_streaming() respectively.

This fixes an issue in resume callback error path where streaming is
stopped and the controls are left in locked state.

Fixes: 1283b3b8f82b9 ("media: i2c: Add driver for Sony IMX219 sensor")
Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/imx219.c