]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
drm: tegra: program only one window during modeset
authorLucas Stach <dev@lynxeye.de>
Wed, 19 Dec 2012 21:38:57 +0000 (21:38 +0000)
committerDave Airlie <airlied@redhat.com>
Sun, 30 Dec 2012 04:01:35 +0000 (14:01 +1000)
The intention is to program exactly WIN_A, not WIN_A and possibly
others.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tegra/dc.c

index b256574409e7f6be31b9b91f53cc1bc606d6b974..3475bd9f9719a3385e22133cb3bd6e2867d3592e 100644 (file)
@@ -223,8 +223,7 @@ static int tegra_crtc_mode_set(struct drm_crtc *crtc,
        win.stride = crtc->fb->pitches[0];
 
        /* program window registers */
-       value = tegra_dc_readl(dc, DC_CMD_DISPLAY_WINDOW_HEADER);
-       value |= WINDOW_A_SELECT;
+       value = WINDOW_A_SELECT;
        tegra_dc_writel(dc, value, DC_CMD_DISPLAY_WINDOW_HEADER);
 
        tegra_dc_writel(dc, win.fmt, DC_WIN_COLOR_DEPTH);