MLK-16928: drm: dcss: fix modesetting issues
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Tue, 21 Nov 2017 13:00:28 +0000 (15:00 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:47:06 +0000 (15:47 -0500)
commitf81cf1f0f143b6a568dd6790b9111a42644c11e7
tree6247c5a361bd244f572b3852f2f2c3148ca70a57
parentad8b2206ea62be57a07c8ddb5baac35953516e39
MLK-16928: drm: dcss: fix modesetting issues

DTG needs to be completely stopped before changing the display
resolution through modesetting. If DTG is not stopped, any change in
resolution could result in unpredictable results, like split screen,
etc.

This patch fixes that by introducing a completion signaling mechanism so
that we can signal the DRM CRTC when DCSS core is done stopping DTG.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-crtc.c
drivers/gpu/imx/dcss/dcss-dtg.c
include/video/imx-dcss.h