OSDN Git Service

drm/i915: Fix warn in intel_display_power_*_domain() functions
authorImre Deak <imre.deak@intel.com>
Mon, 14 Nov 2022 12:22:43 +0000 (14:22 +0200)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 21 Nov 2022 09:41:14 +0000 (09:41 +0000)
commitebbaa4392e36521fb893973d8a0fcb32f3b6d5eb
tree25d1ecfc6048fbd4736fe8b9fb908c0db3024ee7
parent00a6c36cca760d0b659f894dee728555b193c5e1
drm/i915: Fix warn in intel_display_power_*_domain() functions

The intel_display_power_*_domain() functions should always warn if a
default domain is returned as a fallback, fix this up. Spotted by Ville.

Fixes: 979e1b32e0e2 ("drm/i915: Sanitize the port -> DDI/AUX power domain mapping for each platform")
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jouni Högander <jouni.hogander@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221114122251.21327-2-imre.deak@intel.com
(cherry picked from commit 10b85f0e1d922210ae857afed6d012ec32c4b6cb)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/display/intel_display_power.c