aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorJordan Lazare <Jordan.Lazare@amd.com>2017-04-11 11:40:18 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:23:40 -0400
commit209a885be018435a062403a08063672c9d77d8d1 (patch)
treec3439bfcb256e43d369e439d78d39eebed24532f /drivers/gpu/drm/amd/display
parent07c84c7ad388c28ce69303182e06644ef30d3ac3 (diff)
drm/amd/display: Fix missing irq refactor causing potential i2c race
Signed-off-by: Jordan Lazare <Jordan.Lazare@amd.com> Reviewed-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
index 58fda20f6b97..57560a83fda9 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c
@@ -32,8 +32,10 @@
32#include <drm/drm_atomic.h> 32#include <drm/drm_atomic.h>
33#include <drm/drm_edid.h> 33#include <drm/drm_edid.h>
34 34
35
35#include "amdgpu.h" 36#include "amdgpu.h"
36#include "amdgpu_pm.h" 37#include "amdgpu_pm.h"
38#include "dm_helpers.h"
37#include "dm_services_types.h" 39#include "dm_services_types.h"
38 40
39// We need to #undef FRAME_SIZE and DEPRECATED because they conflict 41// We need to #undef FRAME_SIZE and DEPRECATED because they conflict
@@ -3075,13 +3077,16 @@ static bool is_dp_capable_without_timing_msa(
3075{ 3077{
3076 uint8_t dpcd_data; 3078 uint8_t dpcd_data;
3077 bool capable = false; 3079 bool capable = false;
3080
3078 if (amdgpu_connector->dc_link && 3081 if (amdgpu_connector->dc_link &&
3079 dc_read_aux_dpcd( 3082 dm_helpers_dp_read_dpcd(
3080 dc, 3083 NULL,
3081 amdgpu_connector->dc_link->link_index, 3084 amdgpu_connector->dc_link,
3082 DP_DOWN_STREAM_PORT_COUNT, 3085 DP_DOWN_STREAM_PORT_COUNT,
3083 &dpcd_data, sizeof(dpcd_data))) 3086 &dpcd_data,
3087 sizeof(dpcd_data))) {
3084 capable = (dpcd_data & DP_MSA_TIMING_PAR_IGNORED) ? true:false; 3088 capable = (dpcd_data & DP_MSA_TIMING_PAR_IGNORED) ? true:false;
3089 }
3085 3090
3086 return capable; 3091 return capable;
3087} 3092}