drm/radeon/kms: use new pre/post_xfer i2c bit algo hooks

Previous thread: drm/radeon/kms: disable MSI on IGP chips by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)

Next thread: drm/radeon/kms: use lcd pll limits when available by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, April 1, 2010 - 10:59 am

Gitweb:     http://git.kernel.org/linus/ac1aade6876465060ebf9a71675dcb7305f0bafa
Commit:     ac1aade6876465060ebf9a71675dcb7305f0bafa
Parent:     3595be778d8cb887f0e0575ef0a0c1a094d120bb
Author:     Alex Deucher <alexdeucher@gmail.com>
AuthorDate: Sun Mar 14 12:22:44 2010 -0400
Committer:  Dave Airlie <airlied@redhat.com>
CommitDate: Wed Mar 31 14:55:50 2010 +1000

    drm/radeon/kms: use new pre/post_xfer i2c bit algo hooks
    
    This allows us to remove the internal bit algo bus used by
    the radeon i2c algo.  We now register a radeon algo adapter
    if the gpio line is hw capable and the hw inplementation is
    available, otherwise we register a bit algo adapter.
    
    Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
    Signed-off-by: Dave Airlie <airlied@redhat.com>
---
 drivers/gpu/drm/radeon/radeon_connectors.c |    2 +-
 drivers/gpu/drm/radeon/radeon_i2c.c        |  133 +++++++++++++---------------
 drivers/gpu/drm/radeon/radeon_mode.h       |    8 +--
 3 files changed, 64 insertions(+), 79 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/radeon/radeon_connectors.c
index ee0083f..60d5981 100644
--- a/drivers/gpu/drm/radeon/radeon_connectors.c
+++ b/drivers/gpu/drm/radeon/radeon_connectors.c
@@ -940,7 +940,7 @@ static void radeon_dp_connector_destroy(struct drm_connector *connector)
 	if (radeon_connector->edid)
 		kfree(radeon_connector->edid);
 	if (radeon_dig_connector->dp_i2c_bus)
-		radeon_i2c_destroy_dp(radeon_dig_connector->dp_i2c_bus);
+		radeon_i2c_destroy(radeon_dig_connector->dp_i2c_bus);
 	kfree(radeon_connector->con_priv);
 	drm_sysfs_connector_remove(connector);
 	drm_connector_cleanup(connector);
diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c
index f007fcb..352110f 100644
--- a/drivers/gpu/drm/radeon/radeon_i2c.c
+++ b/drivers/gpu/drm/radeon/radeon_i2c.c
@@ -59,6 +59,7 @@ bool radeon_ddc_probe(struct radeon_connector *radeon_connector)
 	return false;
 }
 ...
Previous thread: drm/radeon/kms: disable MSI on IGP chips by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)

Next thread: drm/radeon/kms: use lcd pll limits when available by Linux Kernel Mailing List on Thursday, April 1, 2010 - 10:59 am. (1 message)