summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-03-18 11:09:13 +0100
committerThierry Reding <thierry.reding@gmail.com>2013-05-25 12:32:48 +0200
commit2678aeba5fe1a799788cce2a34003d8fa6ad7153 (patch)
tree276a2558b679c8c01ce4596358d783a79adf182d /drivers/gpu/host1x
parentc7788792a5e7b0d5d7f96d0766b4cb6112d47d75 (diff)
downloadop-kernel-dev-2678aeba5fe1a799788cce2a34003d8fa6ad7153.zip
op-kernel-dev-2678aeba5fe1a799788cce2a34003d8fa6ad7153.tar.gz
drm/tegra: Don't disable unused planes
When a plane isn't in use it isn't attached to a CRTC and therefore the DC registers aren't available for programming. Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r--drivers/gpu/host1x/drm/dc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/drm/dc.c b/drivers/gpu/host1x/drm/dc.c
index 8c04943..98f60d8 100644
--- a/drivers/gpu/host1x/drm/dc.c
+++ b/drivers/gpu/host1x/drm/dc.c
@@ -79,6 +79,9 @@ static int tegra_plane_disable(struct drm_plane *plane)
struct tegra_plane *p = to_tegra_plane(plane);
unsigned long value;
+ if (!plane->crtc)
+ return 0;
+
value = WINDOW_A_SELECT << p->index;
tegra_dc_writel(dc, value, DC_CMD_DISPLAY_WINDOW_HEADER);
OpenPOWER on IntegriCloud