]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Fix AUX power domain toggling across TypeC mode resets
authorImre Deak <imre.deak@intel.com>
Thu, 14 May 2020 20:45:53 +0000 (23:45 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 19 May 2020 11:19:22 +0000 (14:19 +0300)
commitae9b6cfe1352da25931bce3ea4acfd4dc1ac8a85
tree32bb48b169ed74500c0af9b869e3a969a21498b6
parent488e017904f9a04d3b771a0bd70be97da57a834d
drm/i915: Fix AUX power domain toggling across TypeC mode resets

Make sure to select the port's AUX power domain while holding the TC
port lock. The domain depends on the port's current TC mode, which may
get changed under us if we're not holding the lock.

This was left out from
commit 8c10e2262663 ("drm/i915: Keep the TypeC port mode fixed for detect/AUX transfers")

Cc: <stable@vger.kernel.org> # v5.4+
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200514204553.27193-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp.c