[PATCH:xf86-video-glint] Fix DDC2 on PGX32/Raptor 8P

Thomas Klausner wiz at NetBSD.org
Tue Jun 4 03:38:03 PDT 2013


When doing DDC2 on Permedia2 make sure to clear the USE_MONID bit
in the DDCdata register so the i2c bits actually do something.
>From Michael Lorez <macallan at NetBSD.org>
---
 src/pm2_dac.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/pm2_dac.c b/src/pm2_dac.c
index 85093ff..71a1ff0 100644
--- a/src/pm2_dac.c
+++ b/src/pm2_dac.c
@@ -458,8 +458,9 @@ Permedia2I2CPutBits(I2CBusPtr b, int scl, int sda)
 {
     GLINTPtr pGlint = (GLINTPtr) b->DriverPrivate.ptr;
     int r = (pGlint->DDCBus == b) ? PMDDCData : VSSerialBusControl;
-    CARD32 v = GLINT_READ_REG(r) & ~(ClkOut | DataOut);
 
+    CARD32 v = 0;
+   
     if (scl > 0) v |= ClkOut;
     if (sda > 0) v |= DataOut;
 
-- 
1.8.2.3



More information about the xorg-devel mailing list