MLK-18848-3: drm: imx: dcss: split vblank irq enable routine
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 14 Sep 2018 05:33:01 +0000 (08:33 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitc6c34f9170948652b2bfbea0ff9073b41159e397
tree50d45ce68dcfa5b7859bcf601b54db844b84bb31
parente0dcc8643db57861b65efccadf3588dcaba0fabb
MLK-18848-3: drm: imx: dcss: split vblank irq enable routine

Currently, when enabling/disabling vblank interrupt, we also
enable/disable the CTXLD kick interrupt. Most of the time this is fine,
because when vblank gets disabled user-space does not submit any buffers
and CTXLD kick interrupt is not needed.

There is one case when we actually need to be able to have the CTXLD
kick interrupt enabled: when disabling CRTC. Vblank interrupt, in this
case, is disabled before the crtc_atomic_disable routine is called.
However, we still need CTXLD to push the changes to SUBSAM and DTG.

This patch will create a routine just for enabling/disabling CTXLD kick
interrupt and move the code from vblank routine to the new one.

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