drm/i915: add comments on what stage a given PM handler is called
authorImre Deak <imre.deak@intel.com>
Thu, 23 Oct 2014 16:23:28 +0000 (19:23 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Oct 2014 14:34:21 +0000 (16:34 +0200)
commit5545dbbfb3bb7a5ab5ced991e08d1c312326e843
tree2e6f67f1c41fea8a50e1af93c76bbb2638eeac17
parentfc49b3da0e1f20484ac069982e2dcbf1a53f60af
drm/i915: add comments on what stage a given PM handler is called

This will hopefully make it easier to navigate the code without the need
to consult the full PM documentation.

v2:
- add a comment that the freeze handler is also called after rebooting
- add a comment that the thaw handler is also called to recover from
  errors (Ville)
- add the PM event names (PMSG_THAW etc.) for reference (Ville)
- add comments that s0ix can be handled both via system and runtime
  suspend (Ville)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c