diff options
| author | Dominik Kaszewski <dominik.kaszewski@amd.com> | 2026-01-29 11:26:13 +0100 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-02-23 14:16:29 -0500 |
| commit | a4f01bf729b2e0042bc725bb6254a8abea17f1a7 (patch) | |
| tree | ac3f4fff958c8d03324f9d2809457191118d534c /tools/perf/scripts/python/task-analyzer.py | |
| parent | 49bf43ac9838553b63bcd32b84e87f834a7e2234 (diff) | |
drm/amd/display: Refactor and fix link_dpms I2C
[Why]
link_dpms.c issues I2C writes during HDMI link enablement. Current
implementation contains a lot of duplicated code with copy-paste
errors.
[How]
* Refactor common logic into helper functions.
* Invert logic with early returns to decrease indentation.
* Sequence writes by looping over data arrays.
* Fix write_i2c_retimer_setting is_over_340mhz checking reg_settings
instead of reg_settings_6g in the i2c_reg_index <= 0x20 check.
Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Dominik Kaszewski <dominik.kaszewski@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
