drm/i915: abstract display suspend/resume operations
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 6 Aug 2019 12:22:08 +0000 (15:22 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 7 Aug 2019 09:56:16 +0000 (12:56 +0300)
commit071b68cceee7e8232a221f464dd26667f57fbd8f
tree6d7d9bc5a6aed433c6f2c3517e5b7fee5c25d58b
parent1c0023d4f5fd16bc9795c073cb31654d792712c5
drm/i915: abstract display suspend/resume operations

Increase abstraction of display suspend/resume operations by providing
higher level functions, and hiding the details inside
intel_display_power.c.

v2: Make checkpatch happy:
    - braces {} are not necessary for single statement blocks
v3: Also move hsw/bdw PC8 sequences since they are related to
    display PM anyways. (Ville)
v4: Rebase after a long time, plus Move functions to the new
    intel_display_power so we can stop exporting platform specific
    functions as pointed by Jani.
v5: Remove unnecessary braces.
v6 by Jani: make this purely non-functional cleanup, make functions static

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190806122208.16786-2-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_display_power.h
drivers/gpu/drm/i915/i915_drv.c