drm/i915/display: Group DC9 mask set
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 11 Nov 2020 16:24:07 +0000 (08:24 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 12 Nov 2020 14:01:03 +0000 (06:01 -0800)
commit02d794a34c0083057bdfd576e2f6e75b54f31e00
tree8eb54e5f9940b0ae984e0a8704db406d4ae13ec9
parent9a450b68fef7f482b334f900d9ae6d23261b17c1
drm/i915/display: Group DC9 mask set

DC9 has a separate HW flow from the rest of the DC states and it is
available in GEN9 LP platforms and on GEN11 and newer, so here
moving the assignment of the mask to a single conditional block to
simplifly code.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201111162408.98002-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c