提交 2678aeba 编写于 作者: T Thierry Reding 提交者: Thierry Reding

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: NThierry Reding <thierry.reding@avionic-design.de>
上级 c7788792
...@@ -79,6 +79,9 @@ static int tegra_plane_disable(struct drm_plane *plane) ...@@ -79,6 +79,9 @@ static int tegra_plane_disable(struct drm_plane *plane)
struct tegra_plane *p = to_tegra_plane(plane); struct tegra_plane *p = to_tegra_plane(plane);
unsigned long value; unsigned long value;
if (!plane->crtc)
return 0;
value = WINDOW_A_SELECT << p->index; value = WINDOW_A_SELECT << p->index;
tegra_dc_writel(dc, value, DC_CMD_DISPLAY_WINDOW_HEADER); tegra_dc_writel(dc, value, DC_CMD_DISPLAY_WINDOW_HEADER);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册