mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 05:22:49 -04:00
drm/amd/display: add delay between panel pwr off to on.
As per eDP 1.4 spec, there must be at least 500ms delay between eDP power off and on. This change added time stamp when edp power off, which can be used to calculate duration time when edp power on. If duration less than 500ms, add a wait. Signed-off-by: Charlene Liu <charlene.liu@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
4c61af8afe
commit
78d5d04d11
@@ -43,6 +43,13 @@ unsigned long long dm_get_timestamp(struct dc_context *ctx)
|
||||
return timespec64_to_ns(&time);
|
||||
}
|
||||
|
||||
unsigned long long dm_get_elapse_time_in_ns(struct dc_context *ctx,
|
||||
unsigned long long current_time_stamp,
|
||||
unsigned long long last_time_stamp)
|
||||
{
|
||||
return current_time_stamp - last_time_stamp;
|
||||
}
|
||||
|
||||
void dm_perf_trace_timestamp(const char *func_name, unsigned int line)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user