diff options
| author | Imre Deak <[email protected]> | 2024-06-10 19:49:16 +0300 |
|---|---|---|
| committer | Imre Deak <[email protected]> | 2024-06-13 21:26:49 +0300 |
| commit | 9eb4aab86a87e4bd65530dd90a97f45ba13a368a (patch) | |
| tree | 8a09c01513ec61028e619eb94c98d861044b0ea8 /tools/perf/scripts/python/bin | |
| parent | dd1eae474e4e93c4076997a749d744fa01396a01 (diff) | |
drm/i915/dp: Sanitize intel_dp_get_link_train_fallback_values()
Reduce the indentation in intel_dp_get_link_train_fallback_values() by
adding separate helpers to reduce the link rate and lane count. Also
simplify things by passing crtc_state to the function.
This also prepares for later patches in the patchset adding a limitation
on how the link params are reduced.
While at it use lt_dbg()/lt_err() for debug/error prints in the function
which will also print the connector/encoder prefix and add a debug print
about reducing the link parameters.
v2:
- Align reduce_lane_count()'s error handling flow with
reduce_link_rate(). (Ville, Jani)
- Use lt_dbg()/lt_err() in the function.
Cc: Jani Nikula <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions