drm/amd/display: Added negative check for vertical line start.
authorYongqiang Sun <yongqiang.sun@amd.com>
Wed, 30 Aug 2017 15:55:40 +0000 (11:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:17:26 +0000 (18:17 -0400)
commit649e0c7679a5189dec1045329e36cfcf41919dc9
tree29397b576c297c15beb1cf00c98d954187c1f958
parent6f54d0b1d82194116fcb8a3683827c9d8eb8cb9b
drm/amd/display: Added negative check for vertical line start.

In case of vstartup happens before vsync, set vertical line
start to 0.

Signed-off-by: Yongqiang Sun <yongqiang.sun@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>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c