]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/radeon: add connector quirk for fujitsu board
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Sep 2014 17:55:51 +0000 (13:55 -0400)
committerZefan Li <lizefan@huawei.com>
Mon, 1 Dec 2014 10:02:26 +0000 (18:02 +0800)
commit 1952f24d0fa6292d65f886887af87ba8ac79b3ba upstream.

Vbios connector table lists non-existent VGA port.

Bug:
https://bugs.freedesktop.org/show_bug.cgi?id=83184

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/gpu/drm/radeon/radeon_atombios.c

index 6d0c32b9e8aa7af4e1b9451cca2af2ebe905e269..1ce67435918bcb1d28ad9ad49dce9220ad535f71 100644 (file)
@@ -463,6 +463,13 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,
                }
        }
 
+       /* Fujitsu D3003-S2 board lists DVI-I as DVI-I and VGA */
+       if ((dev->pdev->device == 0x9805) &&
+           (dev->pdev->subsystem_vendor == 0x1734) &&
+           (dev->pdev->subsystem_device == 0x11bd)) {
+               if (*connector_type == DRM_MODE_CONNECTOR_VGA)
+                       return false;
+       }
 
        return true;
 }