drm/amd/display: To modify the condition in indicating branch device
authorMartin Tsai <martin.tsai@amd.com>
Wed, 2 Dec 2020 12:22:13 +0000 (20:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:01:40 +0000 (15:01 -0500)
[why]
The sink count change HPD_IRQ will be ignored if the branch device has only
DP DFP.

[how]
To remove the port type restriction.

Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 6b11d4a..2fc1223 100644 (file)
@@ -3173,13 +3173,7 @@ static void get_active_converter_info(
        }
 
        /* DPCD 0x5 bit 0 = 1, it indicate it's branch device */
-       if (ds_port.fields.PORT_TYPE == DOWNSTREAM_DP) {
-               link->dpcd_caps.is_branch_dev = false;
-       }
-
-       else {
-               link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
-       }
+       link->dpcd_caps.is_branch_dev = ds_port.fields.PORT_PRESENT;
 
        switch (ds_port.fields.PORT_TYPE) {
        case DOWNSTREAM_VGA: