mbox series

[0/3] Refactor and clean up codes of mst

Message ID 20230804062029.5686-1-Wayne.Lin@amd.com (mailing list archive)
Headers show
Series Refactor and clean up codes of mst | expand

Message

Lin, Wayne Aug. 4, 2023, 6:20 a.m. UTC
This patch set is mainly trying to organize the mst code today a bit.
Like to clarify and organize the sequence of mst payload allocation and
removement.And also clean up some redundant codes today.

The main refactor one is the patch
"drm/mst: Refactor the flow for payload allocation/removement"
which is adding a new enum variable in stuct drm_dp_mst_atomic_payload
to represent the status of paylad alloction, and then handle the payload
accordingly. Besides, rename some drm mst fnctions to better express the
behind idea.

The other two patches are mainly to clean up unnecessary codes.

Wayne Lin (3):
  drm/mst: delete unnecessary case in drm_dp_add_payload_part2()
  drm/mst: Refactor the flow for payload allocation/removement
  drm/mst: adjust the function drm_dp_remove_payload_part2()

 .../amd/display/amdgpu_dm/amdgpu_dm_helpers.c |  60 +-----
 drivers/gpu/drm/display/drm_dp_mst_topology.c | 189 +++++++++++-------
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |  13 +-
 drivers/gpu/drm/nouveau/dispnv50/disp.c       |  11 +-
 include/drm/display/drm_dp_mst_helper.h       |  22 +-
 5 files changed, 158 insertions(+), 137 deletions(-)