diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c index d6a1a6e..40e3e54 100644 --- a/drivers/gpu/drm/i915/intel_crt.c +++ b/drivers/gpu/drm/i915/intel_crt.c @@ -432,9 +432,17 @@ static int intel_crt_get_modes(struct drm_connector *connector) struct intel_output *intel_output = to_intel_output(connector); struct i2c_adapter *ddcbus; struct drm_device *dev = connector->dev; + struct drm_display_mode *mode, *t; ret = intel_ddc_get_modes(intel_output); + if (ret) { + printk("\n DEBUG: print crt modeline \n"); + list_for_each_entry_safe(mode, t, &connector->probed_modes, head) + drm_mode_debug_printmodeline(mode); + } else + printk("\n DEBUG: no modelines available \n"); + if (ret || !IS_G4X(dev)) goto end; diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 57de9a5..6d6743a 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -645,7 +645,7 @@ intel_find_best_PLL(const intel_limit_t *limit, struct drm_crtc *crtc, int err = target; if (IS_I9XX(dev) && intel_pipe_has_type(crtc, INTEL_OUTPUT_LVDS) && - (I915_READ(LVDS) & LVDS_PORT_EN) != 0) { + (I915_READ(LVDS)) != 0) { /* * For LVDS, if the panel is on, just rely on its current * settings for dual-channel. We haven't figured out how to