diff options
author | Keith Packard <keithp@keithp.com> | 2009-05-30 20:42:28 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-06-04 09:32:12 +1000 |
commit | c9fb15f60eb517c958dec64dca9357bf62bf2201 (patch) | |
tree | 17c67c910ddc93f7adf0b48d27c0256a89d1dc7e /drivers/gpu/drm/i915/intel_hdmi.c | |
parent | e36ebaf49274ffa78f17b62bcae4c92c33b5b391 (diff) | |
download | kernel-crypto-c9fb15f60eb517c958dec64dca9357bf62bf2201.tar.gz kernel-crypto-c9fb15f60eb517c958dec64dca9357bf62bf2201.tar.xz kernel-crypto-c9fb15f60eb517c958dec64dca9357bf62bf2201.zip |
drm: Hook up DPMS property handling in drm_crtc.c. Add drm_helper_connector_dpms.
Making the drm_crtc.c code recognize the DPMS property and invoke the
connector->dpms function doesn't remove any capability from the driver while
reducing code duplication.
That just highlighted the problem with the existing DPMS functions which
could turn off the connector, but failed to turn off any relevant crtcs. The
new drm_helper_connector_dpms function manages all of that, using the
drm_helper-specific crtc and encoder dpms functions, automatically computing
the appropriate DPMS level for each object in the system.
This fixes the current troubles in the i915 driver which left PLLs, pipes
and planes running while in DPMS_OFF mode or even while they were unused.
Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_hdmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c index d0983bb93a1..7d6bdd70532 100644 --- a/drivers/gpu/drm/i915/intel_hdmi.c +++ b/drivers/gpu/drm/i915/intel_hdmi.c @@ -219,6 +219,7 @@ static const struct drm_encoder_helper_funcs intel_hdmi_helper_funcs = { }; static const struct drm_connector_funcs intel_hdmi_connector_funcs = { + .dpms = drm_helper_connector_dpms, .save = intel_hdmi_save, .restore = intel_hdmi_restore, .detect = intel_hdmi_detect, |