]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: i2c/soc_camera: fix ov6650 sensor getting wrong clock
authorJanusz Krzysztofik <jmkrzyszt@gmail.com>
Wed, 15 Jun 2016 22:29:50 +0000 (19:29 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:23:21 +0000 (09:23 +0100)
commitfb796cd622706be3b0481f7e0e5f8ed0e2b06d91
tree563a6ed45fcfadacf2a55d3e55c9695ea980cd5d
parent1b7750bdb26daeecf60b81781659cbc5896973d2
media: i2c/soc_camera: fix ov6650 sensor getting wrong clock

[ Upstream commit 54449af0e0b2ea43a8166611c95b730c850c3184 ]

After changes to v4l2_clk API introduced in v4.1 by commits a37462b919
'[media] V4L: remove clock name from v4l2_clk API' and 4f528afcfb
'[media] V4L: add CCF support to the v4l2_clk API', ov6650 sensor
stopped responding because v4l2_clk_get(), still called with
depreciated V4L2 clock name "mclk", started to return respective CCF
clock instead of the V4l2 one registered by soc_camera. Fix it by
calling v4l2_clk_get() with NULL clock name.

Created and tested on Amstrad Delta against Linux-4.7-rc3 with
omap1_camera fixes.

Signed-off-by: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/soc_camera/ov6650.c