drm/i915/dp: Reset the link params on HPD/connected boot/resume
authorManasi Navare <manasi.d.navare@intel.com>
Wed, 8 Feb 2017 00:54:11 +0000 (16:54 -0800)
committerJani Nikula <jani.nikula@intel.com>
Wed, 15 Feb 2017 15:24:10 +0000 (17:24 +0200)
commitd7e8ef02a6b3d11f0c3ad99c0f656341151c50b9
treece3239847007f175d0cb63db6ae7f6fb3adbac0e
parent75c7b0b8620ce5a672da02e721a775acb7863c64
drm/i915/dp: Reset the link params on HPD/connected boot/resume

The max link parameters should be set/reset only on HPD or
connected boot case or on system resume.

Add a flag reset_link_params to intel_dp to decide when
to reset the max link parameters. This prevents the parameters
from getting reset/overwritten through all other
connector->funcs->detect() calls. This is important when link
training fails and the max link params are modified to the
lower fallback values.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1486515251-23469-1-git-send-email-manasi.d.navare@intel.com
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h