[Why]
DC and non-DC codepaths have different sets of common modes that are
added for eDP and LVDS cases. This can cause different behaviors for
turning on DC on hardware that can support both.

[How]
Drop extra modes from amdgpu_connector_add_common_modes() not present
in amdgpu_dm_connector_add_common_modes().

Cc: Timur Kristóf <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
index ba24a0eba2a4..8c085ed703dd 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
@@ -404,18 +404,12 @@ static void amdgpu_connector_add_common_modes(struct 
drm_encoder *encoder,
                int h;
        } common_modes[] = {
                { 640,  480},
-               { 720,  480},
                { 800,  600},
-               { 848,  480},
                {1024,  768},
-               {1152,  768},
                {1280,  720},
                {1280,  800},
-               {1280,  854},
-               {1280,  960},
                {1280, 1024},
                {1440,  900},
-               {1400, 1050},
                {1680, 1050},
                {1600, 1200},
                {1920, 1080},
-- 
2.51.0

Reply via email to