|
@@ -899,6 +899,17 @@ void intel_lvds_init(struct drm_device *dev)
|
|
int pipe;
|
|
int pipe;
|
|
u8 pin;
|
|
u8 pin;
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * Unlock registers and just leave them unlocked. Do this before
|
|
|
|
+ * checking quirk lists to avoid bogus WARNINGs.
|
|
|
|
+ */
|
|
|
|
+ if (HAS_PCH_SPLIT(dev)) {
|
|
|
|
+ I915_WRITE(PCH_PP_CONTROL,
|
|
|
|
+ I915_READ(PCH_PP_CONTROL) | PANEL_UNLOCK_REGS);
|
|
|
|
+ } else {
|
|
|
|
+ I915_WRITE(PP_CONTROL,
|
|
|
|
+ I915_READ(PP_CONTROL) | PANEL_UNLOCK_REGS);
|
|
|
|
+ }
|
|
if (!intel_lvds_supported(dev))
|
|
if (!intel_lvds_supported(dev))
|
|
return;
|
|
return;
|
|
|
|
|
|
@@ -1097,17 +1108,6 @@ out:
|
|
lvds_encoder->a3_power = I915_READ(lvds_encoder->reg) &
|
|
lvds_encoder->a3_power = I915_READ(lvds_encoder->reg) &
|
|
LVDS_A3_POWER_MASK;
|
|
LVDS_A3_POWER_MASK;
|
|
|
|
|
|
- /*
|
|
|
|
- * Unlock registers and just
|
|
|
|
- * leave them unlocked
|
|
|
|
- */
|
|
|
|
- if (HAS_PCH_SPLIT(dev)) {
|
|
|
|
- I915_WRITE(PCH_PP_CONTROL,
|
|
|
|
- I915_READ(PCH_PP_CONTROL) | PANEL_UNLOCK_REGS);
|
|
|
|
- } else {
|
|
|
|
- I915_WRITE(PP_CONTROL,
|
|
|
|
- I915_READ(PP_CONTROL) | PANEL_UNLOCK_REGS);
|
|
|
|
- }
|
|
|
|
lvds_connector->lid_notifier.notifier_call = intel_lid_notify;
|
|
lvds_connector->lid_notifier.notifier_call = intel_lid_notify;
|
|
if (acpi_lid_notifier_register(&lvds_connector->lid_notifier)) {
|
|
if (acpi_lid_notifier_register(&lvds_connector->lid_notifier)) {
|
|
DRM_DEBUG_KMS("lid notifier registration failed\n");
|
|
DRM_DEBUG_KMS("lid notifier registration failed\n");
|