drm/i915/tc: Don't keep legacy TypeC ports in connected state w/o a sink
authorImre Deak <imre.deak@intel.com>
Tue, 21 Sep 2021 00:23:06 +0000 (03:23 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 29 Sep 2021 20:57:43 +0000 (23:57 +0300)
commit675d23c14821fbaef3df5cbad94b42ec2e3a858a
treec0e9a78c706e9becfd21c7f5cbf8be0eb642e220
parent11a8970865b49c2a1e714ea3ba910d05fdde6944
drm/i915/tc: Don't keep legacy TypeC ports in connected state w/o a sink

A follow-up patch will disconnect/reconnect PHYs around AUX transfers
and modeset enable/disables. To prepare for that and make things
consistent for all TypeC modes stop connecting the PHY in legacy mode
without a sink being connected. This was done before since in legacy
mode the PHY is dedicated to display usage, so there was no point in
disconnecting it. However after the follow-up changes the TC-cold
blocking power domains will be held as long as the PHY is in the
connected state, so we'll need to disconnect/re-connect the PHY in all
TypeC modes to allow for power saving.

Cc: José Roberto de Souza <jose.souza@intel.com>
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/20210921002313.1132357-7-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_tc.c