summaryrefslogtreecommitdiff
path: root/drivers/media/v4l2-core/v4l2-fwnode.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2019-03-11 18:36:03 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-20 13:34:09 +0300
commit12f6153d4555450bdb93d115bdbf28bbd92ea426 (patch)
treeb6f121753f59ba557f1f72de965b730efaa8c350 /drivers/media/v4l2-core/v4l2-fwnode.c
parent32ab688b280301f7cee9e547564cb74e33e06322 (diff)
downloadlinux-12f6153d4555450bdb93d115bdbf28bbd92ea426.tar.xz
media: ov7670: don't access registers when the device is powered off
Since commit 3d6a8fe25605 ("media: ov7670: hook s_power onto v4l2 core"), the device is actually powered off while the video stream is stopped. So now set_format and s_frame_interval could be called while the device is powered off, but these callbacks try to change the register settings at this time. The frame format and framerate will be restored right after power-up, so we can just postpone applying these changes at these callbacks if the device is not powered up. Fixes: 3d6a8fe25605 ("media: ov7670: hook s_power onto v4l2 core") Cc: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Reviewed-by: Lubomir Rintel <lkundrak@v3.sk> Tested-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-fwnode.c')
0 files changed, 0 insertions, 0 deletions