]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/icl: Skip init for an already enabled combo PHY
authorImre Deak <imre.deak@intel.com>
Tue, 6 Nov 2018 16:06:20 +0000 (18:06 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 8 Nov 2018 17:27:29 +0000 (19:27 +0200)
commit1e6618929c6e5b31a1f495ccb3c365964baaab8c
tree0648e3b6382a442f580bdab76fa733cf83291c0e
parentbd3e6cc26c4ba66cca03443af4e5b87fa6539184
drm/i915/icl: Skip init for an already enabled combo PHY

Bspec says we should skip the initialization of combo PHYs that are
already initialized. We'll need to reinit the PHYs more frequently
when exiting from DC6 (after the next patch), so let's make sure the
uninit sequence complies with the spec. For safety skip the init only if
all the PHY register fields have their expected values.

v2:
- Print 'Port X' as we do elsewhere instead of 'Port-X'. (Jose)

Bspec: 21257
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181106160621.23057-5-imre.deak@intel.com
drivers/gpu/drm/i915/intel_combo_phy.c