Module Name:    src
Committed By:   pgoyette
Date:           Mon Apr 20 12:58:33 UTC 2009

Modified Files:
        src/sys/arch/evbarm/gumstix: gxiic.c

Log Message:
Missed this file in previous commit.  This finished updates required
to enable support of i2c quick_{read,write} operations.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbarm/gumstix/gxiic.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/gumstix/gxiic.c
diff -u src/sys/arch/evbarm/gumstix/gxiic.c:1.3 src/sys/arch/evbarm/gumstix/gxiic.c:1.4
--- src/sys/arch/evbarm/gumstix/gxiic.c:1.3	Sun May 11 08:23:17 2008
+++ src/sys/arch/evbarm/gumstix/gxiic.c	Mon Apr 20 12:58:33 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: gxiic.c,v 1.3 2008/05/11 08:23:17 kiyohara Exp $ */
+/*	$NetBSD: gxiic.c,v 1.4 2009/04/20 12:58:33 pgoyette Exp $ */
 /*
  * Copyright (c) 2007 KIYOHARA Takashi
  * All rights reserved.
@@ -25,7 +25,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: gxiic.c,v 1.3 2008/05/11 08:23:17 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gxiic.c,v 1.4 2009/04/20 12:58:33 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -173,5 +173,10 @@
 			    addr, *(u_short *)vbuf);
 	}
 
+	/* Handle quick_read/quick_write ops - XXX Untested XXX */
+	if ((cmdlen == 0) && (buflen == 0))
+		rv = pxa2x0_i2c_quick(&sc->sc_pxa_i2c, addr,
+			I2C_OP_READ_P(op)?1:0);
+
 	return rv;
 }

Reply via email to