media: marvell-ccic: power up the device on mclk enable
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 27 Jan 2021 18:01:43 +0000 (19:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:38:34 +0000 (11:38 +0100)
commitd5b1a7ef9c6e855a71474813041c2a77f1fb8f3b
treeb8b72c87a6928649d7f08307f0a2074053df2953
parentd0f6efac3c82a9df8d838e0ffc9c96b72873df9c
media: marvell-ccic: power up the device on mclk enable

commit 655ae29da72a693cf294bba3c3322e662ff75bd3 upstream.

Writing to REG_CLKCTRL with the power off causes a hang. Enable the
device first.

Cc: stable@vger.kernel.org # 5.10+
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/marvell-ccic/mcam-core.c