From: Alex Deucher Date: Sat, 23 Jul 2011 18:02:04 +0000 (+0000) Subject: drm/radeon/kms: fix i2c map for rv250/280 X-Git-Tag: firefly_0821_release~7541^2~3078 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eec8f481cc0114fd86b2b3d5258b4933cd731571;p=firefly-linux-kernel-4.4.55.git drm/radeon/kms: fix i2c map for rv250/280 commit 6dd666333ddee39903d86f870d5c40d9f100e0cc upstream. Those chips have crt2_ddc bus. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=39672 Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/gpu/drm/radeon/radeon_combios.c b/drivers/gpu/drm/radeon/radeon_combios.c index e4594676a07c..a74217cd192f 100644 --- a/drivers/gpu/drm/radeon/radeon_combios.c +++ b/drivers/gpu/drm/radeon/radeon_combios.c @@ -779,7 +779,8 @@ void radeon_combios_i2c_init(struct radeon_device *rdev) } } } - } else if (rdev->family >= CHIP_R200) { + } else if ((rdev->family == CHIP_R200) || + (rdev->family >= CHIP_R300)) { /* 0x68 */ i2c = combios_setup_i2c_bus(rdev, DDC_MONID, 0, 0); rdev->i2c_bus[3] = radeon_i2c_create(dev, &i2c, "MONID");