While running suspend/resume tests it may happen to go to suspend while
CTXLD still has entries to be commited. Currently, when this happens,
the scaler freezes.
This patch will fire up context loader just before going to suspend,
thus commiting everything to DCSS before cutting off the clocks.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
int wait_time_ms = 0;
unsigned long flags;
+ dcss_ctxld_kick(dcss);
+
while (ctxld->in_use && wait_time_ms < 500) {
msleep(20);
wait_time_ms += 20;