]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only touch WRPLL hw state in enable/disable hooks
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 25 Jun 2014 19:02:03 +0000 (22:02 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Jul 2014 20:13:31 +0000 (22:13 +0200)
commit356b8d40e80482253915423f9d97f0c0b2b1d1c8
tree6297999ad809760fdde59de8f77362763a1f008d
parent106a5fc3f819b01998b838930938f42f7784cb9d
drm/i915: Only touch WRPLL hw state in enable/disable hooks

To be able to do this we need to separately keep track of how many
crtcs need a given WRPLL and how many actually actively use it. The
common shared dpll framework already has all this, including massive
state readout and cross checking. Which allows us to do this switch in
a fairly small patch.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h