summaryrefslogtreecommitdiff
path: root/lib/test_bitops.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2022-02-03 15:33:12 +0300
committerSakari Ailus <sakari.ailus@linux.intel.com>2022-03-04 01:27:05 +0300
commitd4cb5d3c4cee28aa89b02bc33d930a6cf75e7f79 (patch)
tree04f3192eeb7146edd76d6781217d391a69feca14 /lib/test_bitops.c
parente738f5dd67eb8098d75345908a5e73782d0569a5 (diff)
downloadlinux-d4cb5d3c4cee28aa89b02bc33d930a6cf75e7f79.tar.xz
media: i2c: ov5648: Fix lockdep error
ov5648_state_init() calls ov5648_state_mipi_configure() which uses __v4l2_ctrl_s_ctrl[_int64](). This means that sensor->mutex (which is also sensor->ctrls.handler.lock) must be locked before calling ov5648_state_init(). ov5648_state_mipi_configure() is also used in other places where the lock is already held so it cannot be changed itself. Note this is based on an identical (tested) fix for the ov8865 driver, this has only been compile-tested. Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'lib/test_bitops.c')
0 files changed, 0 insertions, 0 deletions