MLK-17368-2: drm: imx: dcss: split dcss_ctxld_write
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Fri, 12 Jan 2018 11:56:58 +0000 (13:56 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commiteb19f428174f18e5565d6cc0bf03f44a1ee8c192
tree8205937d6ef6e4e2d1fdc5dfba58be60abc26e91
parentda3b12e555811439151f9317145a51a3d5ed912a
MLK-17368-2: drm: imx: dcss: split dcss_ctxld_write

In order for DTRC to work properly, we need to be able to write the DCTL
registers (to switch banks), just before activating CTXLD. However,
__dcss_ctxld_enable() function is usually called from irq context, or
whn the mutex is taken. Hence, create a function the can be called from
irq context.

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