Commit 209a885b authored by Jordan Lazare's avatar Jordan Lazare Committed by Alex Deucher

drm/amd/display: Fix missing irq refactor causing potential i2c race

Signed-off-by: default avatarJordan Lazare <Jordan.Lazare@amd.com>
Reviewed-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 07c84c7a
...@@ -32,8 +32,10 @@ ...@@ -32,8 +32,10 @@
#include <drm/drm_atomic.h> #include <drm/drm_atomic.h>
#include <drm/drm_edid.h> #include <drm/drm_edid.h>
#include "amdgpu.h" #include "amdgpu.h"
#include "amdgpu_pm.h" #include "amdgpu_pm.h"
#include "dm_helpers.h"
#include "dm_services_types.h" #include "dm_services_types.h"
// We need to #undef FRAME_SIZE and DEPRECATED because they conflict // We need to #undef FRAME_SIZE and DEPRECATED because they conflict
...@@ -3075,13 +3077,16 @@ static bool is_dp_capable_without_timing_msa( ...@@ -3075,13 +3077,16 @@ static bool is_dp_capable_without_timing_msa(
{ {
uint8_t dpcd_data; uint8_t dpcd_data;
bool capable = false; bool capable = false;
if (amdgpu_connector->dc_link && if (amdgpu_connector->dc_link &&
dc_read_aux_dpcd( dm_helpers_dp_read_dpcd(
dc, NULL,
amdgpu_connector->dc_link->link_index, amdgpu_connector->dc_link,
DP_DOWN_STREAM_PORT_COUNT, DP_DOWN_STREAM_PORT_COUNT,
&dpcd_data, sizeof(dpcd_data))) &dpcd_data,
sizeof(dpcd_data))) {
capable = (dpcd_data & DP_MSA_TIMING_PAR_IGNORED) ? true:false; capable = (dpcd_data & DP_MSA_TIMING_PAR_IGNORED) ? true:false;
}
return capable; return capable;
} }
......
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