]> git.baikalelectronics.ru Git - kernel.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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 19 May 2020 14:54:07 +0000 (17:54 +0300)
commite12f1927e9f1e8ec3b4025c9b3bc5a003b153f65
tree4177ff991e6ee3f630a0c29024018b13d02a4700
parent35b90241cecdc1ddea7171ebdee269d76c728552
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 571e86960e38 ("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
(cherry picked from commit ae9b6cfe1352da25931bce3ea4acfd4dc1ac8a85)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/display/intel_dp.c