Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Always use polling mode for now, hummingbird doe...



details:   https://anonhg.NetBSD.org/src/rev/536179023c42
branches:  trunk
changeset: 337336:536179023c42
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Apr 11 20:05:44 2015 +0000

description:
Always use polling mode for now, hummingbird doesn't work otherwise.

diffstat:

 sys/dev/i2c/pcf8563.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ecb8dfbb2d67 -r 536179023c42 sys/dev/i2c/pcf8563.c
--- a/sys/dev/i2c/pcf8563.c     Sat Apr 11 19:39:09 2015 +0000
+++ b/sys/dev/i2c/pcf8563.c     Sat Apr 11 20:05:44 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcf8563.c,v 1.6 2015/01/11 18:58:09 jmcneill Exp $     */
+/*     $NetBSD: pcf8563.c,v 1.7 2015/04/11 20:05:44 joerg Exp $        */
 
 /*
  * Copyright (c) 2011 Jonathan A. Kollasch
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcf8563.c,v 1.6 2015/01/11 18:58:09 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcf8563.c,v 1.7 2015/04/11 20:05:44 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -128,7 +128,7 @@
 {
        uint8_t bcd[PCF8563_NREGS];
        uint8_t reg = PCF8563_R_SECOND;
-       const int flags = cold ? I2C_F_POLL : 0;
+       const int flags = I2C_F_POLL;
 
        if (iic_acquire_bus(sc->sc_tag, flags)) {
                device_printf(sc->sc_dev, "acquire bus for read failed\n");
@@ -166,7 +166,7 @@
 {
        uint8_t bcd[PCF8563_NREGS];
        uint8_t reg = PCF8563_R_SECOND;
-       const int flags = cold ? I2C_F_POLL : 0;
+       const int flags = I2C_F_POLL;
 
        bcd[PCF8563_R_SECOND] = bintobcd(dt->dt_sec);
        bcd[PCF8563_R_MINUTE] = bintobcd(dt->dt_min);



Home | Main Index | Thread Index | Old Index