drm/i915: Use a crtc mask instead of a refcount for dpll functions, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 14 Mar 2016 08:27:52 +0000 (09:27 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 17 Mar 2016 08:27:28 +0000 (09:27 +0100)
commit2dd66ebde4431c93bfa211bc967a6f2089283aa6
tree851fc8e93ae3b23d8105a86d7bccf3952a808e68
parent1f7717552ef1306be3b7ed28c66c6eff550e3a23
drm/i915: Use a crtc mask instead of a refcount for dpll functions, v2.

This makes it easier to verify correct dpll setup with only a single crtc.
It is also useful to detect double dpll enable/disable.

Changes since v1:
- Rebase on top of Ander's dpll rework.
- Change debugfs active to a mask.
- Change enabled_crtcs and active_crtcs to unsigned.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1457944075-14123-2-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Ander Conselvan de Oliveira <conselvan2@gmail.com>
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dpll_mgr.c
drivers/gpu/drm/i915/intel_dpll_mgr.h