drm/amd/display: Fix return value from rx irq handler on up request
authorWenjing Liu <Wenjing.Liu@amd.com>
Tue, 22 Aug 2017 19:49:57 +0000 (15:49 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:17:04 +0000 (18:17 -0400)
Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index e35bdce..e19447d 100644 (file)
@@ -1964,11 +1964,11 @@ bool dc_link_handle_hpd_rx_irq(struct dc_link *link, union hpd_irq_data *out_hpd
         * so do not handle as a normal sink status change interrupt.
         */
 
+       if (hpd_irq_dpcd_data.bytes.device_service_irq.bits.UP_REQ_MSG_RDY)
+               return true;
+
        /* check if we have MST msg and return since we poll for it */
-       if (hpd_irq_dpcd_data.bytes.device_service_irq.
-                       bits.DOWN_REP_MSG_RDY ||
-               hpd_irq_dpcd_data.bytes.device_service_irq.
-                       bits.UP_REQ_MSG_RDY)
+       if (hpd_irq_dpcd_data.bytes.device_service_irq.bits.DOWN_REP_MSG_RDY)
                return false;
 
        /* For now we only handle 'Downstream port status' case.