OSDN Git Service

drm/i915: Check for duplicated power well IDs
authorImre Deak <imre.deak@intel.com>
Tue, 11 Jul 2017 20:42:33 +0000 (23:42 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Jul 2017 07:38:51 +0000 (09:38 +0200)
commit21792c6046f32113c9a6c3a0ab2177afe4f5fbe3
treeddc661911ea855e4c4f9d9928b3be9a60beb83a1
parentfb9248e202df17cf731c76305f6015bf409179ca
drm/i915: Check for duplicated power well IDs

Check that all the power well IDs are unique on the given platform.

v2:
- Fix using BIT_ULL() instead of BIT() for 64 bit mask.
v3:
- Move the check to a separate function. (Ville)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170711204236.5618-4-imre.deak@intel.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_runtime_pm.c