]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/dp_mst: Add helper to get port number at specific LCT from RAD
authorWayne Lin <Wayne.Lin@amd.com>
Mon, 13 Jan 2025 09:11:00 +0000 (17:11 +0800)
committerLyude Paul <lyude@redhat.com>
Fri, 24 Jan 2025 22:50:34 +0000 (17:50 -0500)
commit580aa2782c5b9eb50cb3bf936bc57ec0bf7d55db
treecb2d5b37e1c5cff91e9508f7704e606cd50fc405
parent6bbce873a9c97cb12f5455c497be279ac58e707f
drm/dp_mst: Add helper to get port number at specific LCT from RAD

Add a helper drm_dp_mst_get_ufp_num_at_lct_from_rad() to extract the up
facing port number at specific link count from the RAD. Use the added
helper in drm_dp_mst_rad_to_str() & drm_dp_get_mst_branch_device() to
unify the implementation.

V2:
- Adjust the code format (Lyude)

V3:
- Adjust parameter "rad" of drm_dp_mst_get_ufp_num_at_lct_from_rad() to
be constant (Kernel test robot)

Cc: Imre Deak <imre.deak@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Lyude Paul <lyude@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
[fixed commit message typo]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250113091100.3314533-3-Wayne.Lin@amd.com
drivers/gpu/drm/display/drm_dp_mst_topology.c