drm/mst: Separate sideband packet header parsing from message building
authorSean Paul <seanpaul@chromium.org>
Thu, 13 Feb 2020 21:15:18 +0000 (16:15 -0500)
committerSean Paul <seanpaul@chromium.org>
Fri, 27 Mar 2020 17:36:01 +0000 (13:36 -0400)
commit21a729d00776799c553b1cf45cb798c852ead660
treeac76e016dd6532fe256eac7a8e240862680ce5f1
parent1a8bf67df6d87912ab1fc17fa1a7d63fbddddaee
drm/mst: Separate sideband packet header parsing from message building

In preparation of per-branch device down message handling, separate
header parsing from message building. This will allow us to peek at
figure out which branch device the message is from before starting to
parse the message contents.

Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Wayne Lin <waynelin@amd.com>
[seanpaul s/drm_dp_sideband_msg_build/drm_dp_sideband_msg_set_header/]
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200213211523.156998-2-sean@poorly.run
drivers/gpu/drm/drm_dp_mst_topology.c