]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/meta-ti-glsdk.git/blob - recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.16/0067-drm-radeon-fix-load-detect-on-rn50-with-hardcoded-ED.patch
linux-ti33x-psp 3.2: rebase patches onto latest git
[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.16 / 0067-drm-radeon-fix-load-detect-on-rn50-with-hardcoded-ED.patch
1 From cfcbd4d6d2b7604aee1daa122663bbdfa5743fd1 Mon Sep 17 00:00:00 2001
2 From: Dave Airlie <airlied@redhat.com>
3 Date: Thu, 19 Apr 2012 15:42:58 +0100
4 Subject: [PATCH 67/68] drm/radeon: fix load detect on rn50 with hardcoded
5  EDIDs.
7 commit a09d431f344d854e4fe9cfac44f78cb8202f3eb7 upstream.
9 When the force changes went in back in 3.3.0, we ended up returning
10 disconnected in the !force case, and the connected in when forced,
11 as it hit the hardcoded check.
13 Fix it so all exits go via the hardcoded check and stop spurious
14 modesets on platforms with hardcoded EDIDs.
16 Reported-by: Evan McNabb (Red Hat)
17 Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
18 Signed-off-by: Dave Airlie <airlied@redhat.com>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20 ---
21  drivers/gpu/drm/radeon/radeon_connectors.c |    2 +-
22  1 file changed, 1 insertion(+), 1 deletion(-)
24 diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
25 index f19ea2e..4a4493f 100644
26 --- a/drivers/gpu/drm/radeon/radeon_connectors.c
27 +++ b/drivers/gpu/drm/radeon/radeon_connectors.c
28 @@ -976,6 +976,7 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)
29          * cases the DVI port is actually a virtual KVM port connected to the service
30          * processor.
31          */
32 +out:
33         if ((!rdev->is_atom_bios) &&
34             (ret == connector_status_disconnected) &&
35             rdev->mode_info.bios_hardcoded_edid_size) {
36 @@ -983,7 +984,6 @@ radeon_dvi_detect(struct drm_connector *connector, bool force)
37                 ret = connector_status_connected;
38         }
39  
40 -out:
41         /* updated in get modes as well since we need to know if it's analog or digital */
42         radeon_connector_update_scratch_regs(connector, ret);
43         return ret;
44 -- 
45 1.7.10