Commit 77d07fd9 authored by Chris Wilson's avatar Chris Wilson

drm/i915/lvds: Remove busy wait for powering down the panel

Just assume that it will turn off...
Reported-by: default avatarSitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent b222f267
...@@ -83,10 +83,7 @@ static void intel_lvds_set_power(struct drm_device *dev, bool on) ...@@ -83,10 +83,7 @@ static void intel_lvds_set_power(struct drm_device *dev, bool on)
if (on) { if (on) {
I915_WRITE(lvds_reg, I915_READ(lvds_reg) | LVDS_PORT_EN); I915_WRITE(lvds_reg, I915_READ(lvds_reg) | LVDS_PORT_EN);
POSTING_READ(lvds_reg); I915_WRITE(ctl_reg, I915_READ(ctl_reg) | POWER_TARGET_ON);
I915_WRITE(ctl_reg, I915_READ(ctl_reg) |
POWER_TARGET_ON);
if (wait_for(I915_READ(status_reg) & PP_ON, 1000)) if (wait_for(I915_READ(status_reg) & PP_ON, 1000))
DRM_ERROR("timed out waiting to enable LVDS pipe"); DRM_ERROR("timed out waiting to enable LVDS pipe");
...@@ -94,11 +91,7 @@ static void intel_lvds_set_power(struct drm_device *dev, bool on) ...@@ -94,11 +91,7 @@ static void intel_lvds_set_power(struct drm_device *dev, bool on)
} else { } else {
intel_panel_set_backlight(dev, 0); intel_panel_set_backlight(dev, 0);
I915_WRITE(ctl_reg, I915_READ(ctl_reg) & I915_WRITE(ctl_reg, I915_READ(ctl_reg) & ~POWER_TARGET_ON);
~POWER_TARGET_ON);
if (wait_for((I915_READ(status_reg) & PP_ON) == 0, 1000))
DRM_ERROR("timed out waiting for LVDS pipe to turn off");
I915_WRITE(lvds_reg, I915_READ(lvds_reg) & ~LVDS_PORT_EN); I915_WRITE(lvds_reg, I915_READ(lvds_reg) & ~LVDS_PORT_EN);
POSTING_READ(lvds_reg); POSTING_READ(lvds_reg);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment