]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 18 Sep 2018 20:47:09 +0000 (13:47 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 27 Sep 2018 00:06:07 +0000 (17:06 -0700)
commit87464004c455fbd80b6c389f5bd3b253f85f81cb
treec705c41990fd4c2ad58ae1472bff869002b04f2f
parent8934475d889f38f9014605ae8c7c544c5d2ebee1
drm/i915/runtime_pm: Share code to enable/disable PCH reset handshake

Instead of have the same code spread into 4 platforms lets share it.
BXT do not have a PCH so here also handling this case by unseting
RESET_PCH_HANDSHAKE_ENABLE.

v2(Rodrigo):
- renamed to intel_pch_reset_handshake()
- added comment about why BXT need the bit to be unset

v3(Rodrigo and Ville):
- added bool have_pch to intel_pch_reset_handshake()
- added back BXT comment

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180918204714.27306-1-jose.souza@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c