Skip to content

Commit 9a57348

Browse files
Wayne Linalexdeucher
authored andcommitted
drm/amd/display: Defer the setting of link hpd status for usb4/tbt
[Why & How] Link hpd status is set during link detection process via dpia_query_hpd_status(), doesn't need to explicitly set it during outbox irq. Remove it. Reviewed-by: Jerry Zuo <[email protected]> Acked-by: Zaeem Mohamed <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e32e15d commit 9a57348

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ static void dm_dmub_outbox1_low_irq(void *interrupt_params)
863863
struct dmcub_trace_buf_entry entry = { 0 };
864864
u32 count = 0;
865865
struct dmub_hpd_work *dmub_hpd_wrk;
866-
struct dc_link *plink = NULL;
867866
static const char *const event_type[] = {
868867
"NO_DATA",
869868
"AUX_REPLY",
@@ -919,13 +918,6 @@ static void dm_dmub_outbox1_low_irq(void *interrupt_params)
919918
}
920919
INIT_WORK(&dmub_hpd_wrk->handle_hpd_work, dm_handle_hpd_work);
921920
dmub_hpd_wrk->adev = adev;
922-
if (notify.type == DMUB_NOTIFICATION_HPD) {
923-
plink = adev->dm.dc->links[notify.link_index];
924-
if (plink) {
925-
plink->hpd_status =
926-
notify.hpd_status == DP_HPD_PLUG;
927-
}
928-
}
929921
queue_work(adev->dm.delayed_hpd_wq, &dmub_hpd_wrk->handle_hpd_work);
930922
} else {
931923
dm->dmub_callback[notify.type](adev, &notify);

0 commit comments

Comments
 (0)