aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-05-23 11:48:59 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-07-03 11:29:00 -0400
commit0a14e305d28d6dd0cf03512ee9ec19560989ef83 (patch)
tree1bdc3ff1a8eb8f760aea0e74964d1932da22af89 /drivers/gpu/drm
parentf11d29208d5cddaf1fa55bbf3539ec94d824370a (diff)
drm/radeon: fix XFX quirk
BugLink: http://bugs.launchpad.net/bugs/1013748 commit 1ebf169ad4dc68f18cc0dab35163b0f324fc6c41 upstream. Only override the ddc bus if the connector doesn't have a valid one. The existing code overrode the ddc bus for all connectors even if it had ddc bus. Fixes ddc on another XFX card with the same pci ids that was broken by the quirk overwriting the correct ddc bus. Reported-by: Mehdi Aqadjani Memar <m.aqadjanimemar@student.ru.nl> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/radeon/radeon_atombios.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c
index a324564e5b9..ef6b426b1ee 100644
--- a/drivers/gpu/drm/radeon/radeon_atombios.c
+++ b/drivers/gpu/drm/radeon/radeon_atombios.c
@@ -480,7 +480,9 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,
480 */ 480 */
481 if ((dev->pdev->device == 0x9498) && 481 if ((dev->pdev->device == 0x9498) &&
482 (dev->pdev->subsystem_vendor == 0x1682) && 482 (dev->pdev->subsystem_vendor == 0x1682) &&
483 (dev->pdev->subsystem_device == 0x2452)) { 483 (dev->pdev->subsystem_device == 0x2452) &&
484 (i2c_bus->valid == false) &&
485 !(supported_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))) {
484 struct radeon_device *rdev = dev->dev_private; 486 struct radeon_device *rdev = dev->dev_private;
485 *i2c_bus = radeon_lookup_i2c_gpio(rdev, 0x93); 487 *i2c_bus = radeon_lookup_i2c_gpio(rdev, 0x93);
486 } 488 }