]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: Clear the shared port PLLs from the new crtc state
authorImre Deak <imre.deak@intel.com>
Mon, 8 Jul 2019 14:07:35 +0000 (17:07 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 9 Jul 2019 15:48:57 +0000 (18:48 +0300)
commit963a3c8fc24a438dc01c6e0d1c1ad8e45af33274
tree7da14347f17d1b89ed8271a7f1e95adbfeb86f25
parentdf8ede6eca07114b9a237f3a32f835206288834a
drm/i915/icl: Clear the shared port PLLs from the new crtc state

For consistency clear the icl_port_dplls from the new crtc state, when
releasing the DPLLs from the old crtc state. Leaving them set could
result in releasing the same PLLs multiple times from the same CRTC
state incorrectly (if the same CRTC was first used for a TypeC port then
for a combo PHY port).

Leaving the stale pointers behind happens not to cause a problem atm
(since the incorrect releasing will be a NOP), but we need to fix that
for consistency.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190708140735.20198-2-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dpll_mgr.c