Skip to contentSkip to conversation

drm/radeon: fix XFX quirk

PATCH In review [email protected] 1 participant 2 messages May 23, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/radeon: fix XFX quirk

From: Alex Deucher <[email protected]>

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.

---
 drivers/gpu/drm/radeon/radeon_atombios.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_atombios.c +3 -1
index f21cb08..3f57c42 100644
@@ -440,7 +440,9 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,
 	 */
 	if ((dev->pdev->device == 0x9498) &&
 	    (dev->pdev->subsystem_vendor == 0x1682) &&
-	    (dev->pdev->subsystem_device == 0x2452)) {
+	    (dev->pdev->subsystem_device == 0x2452) &&
+	    (i2c_bus->valid == false) &&
+	    !(supported_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))) {
 		struct radeon_device *rdev = dev->dev_private;
 		*i2c_bus = radeon_lookup_i2c_gpio(rdev, 0x93);
 	}
Signature · 1 line
1.7.7.5
#1 lore raw
Quoted 11 lines · On Wed, May 23, 2012 at 11:48 AM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

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.

This should go to stable as well.

Quoted 22 lines

---
 drivers/gpu/drm/radeon/radeon_atombios.c |    4 +++-

 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_atombios.c +0 -0
index f21cb08..3f57c42 100644
@@ -440,7 +440,9 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev,
         */

       if ((dev->pdev->device == 0x9498) &&
           (dev->pdev->subsystem_vendor == 0x1682) &&
-           (dev->pdev->subsystem_device == 0x2452)) {
+           (dev->pdev->subsystem_device == 0x2452) &&
+           (i2c_bus->valid == false) &&
+           !(supported_device & (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT))) { struct radeon_device *rdev = dev->dev_private;
               *i2c_bus = radeon_lookup_i2c_gpio(rdev, 0x93);
       }
--
1.7.7.5