]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Restore correct bxt_ddi_phy_calc_lane_lat_optim_mask() calculation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Apr 2019 16:49:25 +0000 (19:49 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 12 Apr 2019 13:35:50 +0000 (16:35 +0300)
commit08098789815d5d6f3c7101cc43899eaa86e657c4
tree0dee7cb748eaf009167bc633b9f4054bca5a71d3
parent8852ec1898c6b8d0d26eadc3d45d44dd219a4372
drm/i915: Restore correct bxt_ddi_phy_calc_lane_lat_optim_mask() calculation

We are no longer calling bxt_ddi_phy_calc_lane_lat_optim_mask() when
intel{hdmi,dp}_compute_config() succeeds, and instead only call it
when those fail. This is fallout from the bool->int
.compute_config() conversion which failed to invert the return
value check before calling bxt_ddi_phy_calc_lane_lat_optim_mask().
Let's just replace it with an early bailout so that it's harder
to miss.

This restores the correct latency optim setting calculation
(which could fix some real failures), and avoids the
MISSING_CASE() from bxt_ddi_phy_calc_lane_lat_optim_mask()
after intel{hdmi,dp}_compute_config() has failed.

Cc: Lyude Paul <lyude@redhat.com>
Fixes: d27d396b039f ("drm/i915: Pass down rc in intel_encoder->compute_config()")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109373
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190411164925.28491-1-ville.syrjala@linux.intel.com
Reviewed-by: Lyude Paul <lyude@redhat.com>
drivers/gpu/drm/i915/intel_ddi.c