MLK-18826: drm: imx: dcss: fix hang when dumping registers
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Thu, 19 Jul 2018 11:07:14 +0000 (14:07 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitcd045c53d7e8440f05fc20fed8e0403cbdd371a3
tree925d2e2bdd1b103e5c8a2edaca96c76011e74785
parentf1a92c4b417abc1aa7d6babd6b6abbbfb84589b6
MLK-18826: drm: imx: dcss: fix hang when dumping registers

If DCSS is suspended, the clocks are disabled. Dumping the registers,
with the following command:

cat /sys/kernel/debug/imx-dcss/dump_registers

will hang the system, because of DTG.

This patch makes sure clocks are enabled before dumping the registers
and will immediately release them afterwards.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-common.c