]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid a full port detection in the first eDP short pulse
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 21 Nov 2018 22:54:36 +0000 (14:54 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Thu, 22 Nov 2018 21:51:15 +0000 (13:51 -0800)
commitaa7b7f401b1b897e63cbbc3155d58a2bcd6ca3d3
tree4a47c170ff19254b0ea57166dea64ea7bb517c42
parentfe7880bf3beb1b0a125cf53e96bb3a8592dcf9d2
drm/i915: Avoid a full port detection in the first eDP short pulse

Some eDP panels do not set a valid sink count value and even for the
ones that sets is should always be one for eDP, that is why it is not
cached in intel_edp_init_dpcd().

But intel_dp_short_pulse() compares the old count with the read one
if there is a mistmatch a full port detection will be executed, what
was happening in the first short pulse interruption of eDP panels
that sets sink count.

Instead of just skip the compasison for eDP panels, lets not read
the sink count at all for eDP.

v2: the previous version of this patch it was caching the sink count
in intel_edp_init_dpcd() but I was pointed out by Ville a patch that
handled a case of a eDP panel that do not set sink count and as sink
count is not used to eDP certification was choosed to just not read
it at all.

Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181121225441.18785-1-jose.souza@intel.com
drivers/gpu/drm/i915/intel_dp.c