]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: pass the right num of modes added
authorMikita Lipski <mikita.lipski@amd.com>
Thu, 26 Jul 2018 20:27:48 +0000 (16:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:09:57 +0000 (11:09 -0500)
commit94974f9de191e3b6af182c75027f8370b08658cf
treee8710c1ea664c8157dd46228eab68f5d0dcd6b48
parent9f047e9292ed629920ba1c4345017e1ba2169cc2
drm/amd/display: pass the right num of modes added

[why]
In case if edid is null or corrupted we need to manually add
a single failsafe mode (640x480). If zero modes returned
DRM adds a different failsafe mode that is not accepted by
DP 1.2 compliance test

[how]
Return the number of modes manually added

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Sun peng Li <Sunpeng.Li@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c