Rev 4104 | Rev 4560 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4104 | Rev 4293 | ||
---|---|---|---|
Line 488... | Line 488... | ||
488 | void intel_panel_disable_backlight(struct drm_device *dev) |
488 | void intel_panel_disable_backlight(struct drm_device *dev) |
489 | { |
489 | { |
490 | struct drm_i915_private *dev_priv = dev->dev_private; |
490 | struct drm_i915_private *dev_priv = dev->dev_private; |
491 | unsigned long flags; |
491 | unsigned long flags; |
Line -... | Line 492... | ||
- | 492 | ||
- | 493 | /* |
|
- | 494 | * Do not disable backlight on the vgaswitcheroo path. When switching |
|
- | 495 | * away from i915, the other client may depend on i915 to handle the |
|
- | 496 | * backlight. This will leave the backlight on unnecessarily when |
|
- | 497 | * another client is not activated. |
|
- | 498 | */ |
|
- | 499 | if (dev->switch_power_state == DRM_SWITCH_POWER_CHANGING) { |
|
- | 500 | DRM_DEBUG_DRIVER("Skipping backlight disable on vga switch\n"); |
|
- | 501 | return; |
|
- | 502 | } |
|
492 | 503 | ||
Line 493... | Line 504... | ||
493 | spin_lock_irqsave(&dev_priv->backlight.lock, flags); |
504 | spin_lock_irqsave(&dev_priv->backlight.lock, flags); |
494 | 505 |