Commit 2068afe6 authored by Nikola Cornij's avatar Nikola Cornij Committed by Alex Deucher

drm/amd/display: Add hook for MST root branch info

This allows DM to do any necessary updates before MST discovery starts.
Signed-off-by: default avatarNikola Cornij <nikola.cornij@amd.com>
Reviewed-by: default avatarNikola Cornij <Nikola.Cornij@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent bf53769d
...@@ -169,6 +169,11 @@ static void get_payload_table( ...@@ -169,6 +169,11 @@ static void get_payload_table(
mutex_unlock(&mst_mgr->payload_lock); mutex_unlock(&mst_mgr->payload_lock);
} }
void dm_helpers_dp_update_branch_info(
struct dc_context *ctx,
const struct dc_link *link)
{}
/* /*
* Writes payload allocation table in immediate downstream device. * Writes payload allocation table in immediate downstream device.
*/ */
......
...@@ -529,6 +529,10 @@ static bool detect_dp( ...@@ -529,6 +529,10 @@ static bool detect_dp(
if (reason == DETECT_REASON_BOOT) if (reason == DETECT_REASON_BOOT)
boot = true; boot = true;
dm_helpers_dp_update_branch_info(
link->ctx,
link);
if (!dm_helpers_dp_mst_start_top_mgr( if (!dm_helpers_dp_mst_start_top_mgr(
link->ctx, link->ctx,
link, boot)) { link, boot)) {
......
...@@ -40,6 +40,14 @@ enum dc_edid_status dm_helpers_parse_edid_caps( ...@@ -40,6 +40,14 @@ enum dc_edid_status dm_helpers_parse_edid_caps(
const struct dc_edid *edid, const struct dc_edid *edid,
struct dc_edid_caps *edid_caps); struct dc_edid_caps *edid_caps);
/*
* Update DP branch info
*/
void dm_helpers_dp_update_branch_info(
struct dc_context *ctx,
const struct dc_link *link);
/* /*
* Writes payload allocation table in immediate downstream device. * Writes payload allocation table in immediate downstream device.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment