Skip to contentSkip to conversation

drm/i915: enable gmbus on gen2

PATCH In review Daniel Vetter 3 participants 5 messages Mar 2, 2012 – Mar 25, 2012

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

PATCH 1/1 drm/i915: enable gmbus on gen2

With the recent set of gmbus fixes, this seems to work on my i855gm.

---
 drivers/gpu/drm/i915/intel_i2c.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_i2c.c +0 -4
index 601c86e..8f66397 100644
@@ -388,10 +388,6 @@ int intel_setup_gmbus(struct drm_device *dev)
 		bus->reg0 = i | GMBUS_RATE_100KHZ;
 
 		bus->has_gpio = intel_gpio_setup(bus, i);
-
-		/* XXX force bit banging until GMBUS is fully debugged */
-		if (bus->has_gpio && IS_GEN2(dev))
-			bus->force_bit = true;
 	}
 
 	intel_i2c_reset(dev_priv->dev);
Signature · 1 line
1.7.8.3
#1 lore raw

Hi Chris,

Given that you're about the only other gen2 user I know ... can you ack this patch for inclusion into 3.5?

Thanks, Daniel

Quoted 25 lines · Daniel Vetter

With the recent set of gmbus fixes, this seems to work on my i855gm.

---
 drivers/gpu/drm/i915/intel_i2c.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_i2c.c +0 -4
index 601c86e..8f66397 100644
@@ -388,10 +388,6 @@ int intel_setup_gmbus(struct drm_device *dev)
 		bus->reg0 = i | GMBUS_RATE_100KHZ;
 
 		bus->has_gpio = intel_gpio_setup(bus, i);
-
-		/* XXX force bit banging until GMBUS is fully debugged */
-		if (bus->has_gpio && IS_GEN2(dev))
-			bus->force_bit = true;
 	}
 
 	intel_i2c_reset(dev_priv->dev);
Signature · 1 line
1.7.8.3
Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48
#2 lore raw
Quoted 4 lines · Daniel Vetter

Hi Chris,

Given that you're about the only other gen2 user I know ... can you ack this patch for inclusion into 3.5?

Sure, I'll start building a kernel for the 855gm.
-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Acked-by
#3 lore raw
In reply to Daniel Vetter
Quoted 4 lines · Daniel Vetter

Hi Chris,

Given that you're about the only other gen2 user I know ... can you ack this patch for inclusion into 3.5?

It boots, but it didn't manage to acquire the EDID for CRT. Then again, that fails using GPIO as well... (The good news is that it fails quicker and quieter using GMBUS!)

So it appears to be no worse than before,

-Chris

Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
#4 lore raw
Quoted 6 lines · Chris Wilson
Quoted 4 lines · Daniel Vetter

Hi Chris,

Given that you're about the only other gen2 user I know ... can you ack this patch for inclusion into 3.5?

Quoted 6 lines

It boots, but it didn't manage to acquire the EDID for CRT. Then again, that fails using GPIO as well... (The good news is that it fails quicker and quieter using GMBUS!)

So it appears to be no worse than before,

Edid reading works here, both with gmbus and bit-banging. Thanks for testing this, queued for -next.
-Daniel

Signature · 3 lines
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48