drm/radeon/kms: fix i2c map for rv250/280
Subsystems (2)
PATCH 1/1 drm/radeon/kms: fix i2c map for rv250/280
From: Alex Deucher <[email protected]>
Those chips have crt2_ddc bus.
Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=39672
--- drivers/gpu/drm/radeon/radeon_combios.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_combios.c +2 -1
@@ -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" );
Signature · 1 line
1.7.1.1
Quoted 3 lines · On 23 July 2011 20:02, <[email protected]> wrote:
From: Alex Deucher <[email protected]>
Those chips have
crt2_ddcbus.
Maybe adding a comment in the code'll make sure nobody will ever "clean up" or "optimize" the tests by replacing them back by "else if (rdev->family
Quoted 8 lines
=
CHIP_R200)"...- } 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");
My 2 cents
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel