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>
static int dcss_dump_regs_show(struct seq_file *s, void *data)
{
+ struct dcss_soc *dcss = s->private;
+
+ pm_runtime_get_sync(dcss->dev);
+
dcss_blkctl_dump_regs(s, s->private);
dcss_dtrc_dump_regs(s, s->private);
dcss_dpr_dump_regs(s, s->private);
dcss_hdr10_dump_regs(s, s->private);
dcss_ctxld_dump_regs(s, s->private);
+ pm_runtime_put_sync(dcss->dev);
+
return 0;
}