mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
drm/exynos: initialize VIDCON0 when fimd is disabled
When the fimd is disabled by fimd_disable(), enabled overlay layers also are disabled. If clocks for fimd are enabled by fimd_enable() on this case, it can lead IOMMU page fault. The reason is that VIDCON0_ENVID and VIDCON0_ENVID_F bits of VIDCON0 register are set still even though fimd is disabled, so it may continue display output of prior when clocks for fimd are enabled again. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
c329f667ba
commit
b74f14fd5c
1 changed files with 2 additions and 0 deletions
|
@ -801,6 +801,8 @@ static void fimd_disable(struct exynos_drm_crtc *crtc)
|
||||||
for (i = 0; i < WINDOWS_NR; i++)
|
for (i = 0; i < WINDOWS_NR; i++)
|
||||||
fimd_win_disable(crtc, i);
|
fimd_win_disable(crtc, i);
|
||||||
|
|
||||||
|
writel(0, ctx->regs + VIDCON0);
|
||||||
|
|
||||||
clk_disable_unprepare(ctx->lcd_clk);
|
clk_disable_unprepare(ctx->lcd_clk);
|
||||||
clk_disable_unprepare(ctx->bus_clk);
|
clk_disable_unprepare(ctx->bus_clk);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue