drm/amd/display/dc: drop dm_delay_in_microseconds
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Oct 2017 16:42:30 +0000 (12:42 -0400)
committerDave Airlie <airlied@redhat.com>
Tue, 17 Oct 2017 00:43:05 +0000 (10:43 +1000)
Use udelay directly.

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_hwss.c
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/dm_services.h

index 616431e25b79696b50a022d3d6223cd6e1ff14e4..5f815cab94b57b008b72fffed1f3e2bf51e17364 100644 (file)
@@ -127,7 +127,7 @@ static bool edp_receiver_ready_T9(struct dc_link *link)
                        break;
                if (result != DC_OK)
                        break;
-               dm_delay_in_microseconds(link->ctx, 100); //MAx T9
+               udelay(100); //MAx T9
        } while (++tries < 50);
        return result;
 }
@@ -271,7 +271,7 @@ void dp_retrain_link_dp_test(struct dc_link *link,
                        pipes[i].stream->sink->link != NULL &&
                        pipes[i].stream_res.stream_enc != NULL &&
                        pipes[i].stream->sink->link == link) {
-                       dm_delay_in_microseconds(link->ctx, 100);
+                       udelay(100);
 
                        pipes[i].stream_res.stream_enc->funcs->dp_blank(
                                        pipes[i].stream_res.stream_enc);
index f9873cad40e00aab950b67cc881f152f031cbdf3..3691c7498d08a93e89dbea8a3d574f6e1e77b994 100644 (file)
@@ -137,7 +137,7 @@ static void dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait)
                                        if (psr_state == 0)
                                                break;
                                }
-                               dm_delay_in_microseconds(dmcu->ctx, 10);
+                               udelay(10);
                }
        }
 }
@@ -378,7 +378,7 @@ static void dcn10_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait)
                        if (psr_state == 0)
                                break;
                }
-               dm_delay_in_microseconds(dmcu->ctx, 500);
+               udelay(500);
        }
 
        /* assert if max retry hit */
index 8166027d2d832ae93a40fa6ce318aa2ca48598c2..a11991c382decff4745a9ac90dcd70c49037672d 100644 (file)
@@ -404,9 +404,6 @@ bool dm_read_persistent_data(struct dc_context *ctx,
                unsigned int size,
                struct persistent_data_flag *flag);
 
-void dm_delay_in_microseconds
-       (struct dc_context *ctx, unsigned int microSeconds);
-
 bool dm_query_extended_brightness_caps
        (struct dc_context *ctx, enum dm_acpi_display_type display,
                        struct dm_acpi_atif_backlight_caps *pCaps);