drm/amd/display: fix dp_ss_control vbios flag parsing
authorDmytro Laktyushkin <[email protected]>
Thu, 2 Aug 2018 15:43:36 +0000 (11:43 -0400)
committerAlex Deucher <[email protected]>
Tue, 21 Aug 2018 19:16:28 +0000 (14:16 -0500)
dp_ss_control = 0 means ss is off, we had a typo where
we would double not dp_ss_control while setting dp_ss_off
flag

Signed-off-by: Dmytro Laktyushkin <[email protected]>
Reviewed-by: Eric Bernstein <[email protected]>
Acked-by: Bhawanpreet Lakha <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index 326b3e99b7e4e63a8067207c368a546617050679..222ff7c1bf4f0a7c44ee9b6d2082d548c921d70e 100644 (file)
@@ -1040,7 +1040,7 @@ static bool construct(
        link->link_id = bios->funcs->get_connector_id(bios, init_params->connector_index);
 
        if (dc_ctx->dc_bios->integrated_info)
-               link->dp_ss_off = !!dc_ctx->dc_bios->integrated_info->dp_ss_control;
+               link->dp_ss_off = !dc_ctx->dc_bios->integrated_info->dp_ss_control;
 
        if (link->link_id.type != OBJECT_TYPE_CONNECTOR) {
                dm_error("%s: Invalid Connector ObjectID from Adapter Service for connector index:%d! type %d expected %d\n",