]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: ov772x: avoid accessing registers under power saving mode
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 6 May 2018 14:19:27 +0000 (10:19 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 13:17:59 +0000 (09:17 -0400)
commit95f5a45aea8800e011698fef1c4f535e9afb374a
tree50dfd527f1ca890b5f6066e69794a60dbfeb4763
parent09e620c6af57ecc94411895eec78c5799a6e2a8d
media: ov772x: avoid accessing registers under power saving mode

The set_fmt() in subdev pad ops, the s_ctrl() for subdev control handler,
and the s_frame_interval() in subdev video ops could be called when the
device is under power saving mode.  These callbacks for ov772x driver
cause updating H/W registers that will fail under power saving mode.

This avoids it by not apply any changes to H/W if the device is not powered
up.  Instead the changes will be restored right after power-up.

Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov772x.c