Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Disable the not-in-interrupt assertions for now; ...



details:   https://anonhg.NetBSD.org/src/rev/a44dce71a0ab
branches:  trunk
changeset: 847448:a44dce71a0ab
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Dec 23 14:26:19 2019 +0000

description:
Disable the not-in-interrupt assertions for now; more work needs to be
done in several i2c client drivers.

diffstat:

 sys/dev/i2c/i2c_exec.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r a1703afda08b -r a44dce71a0ab sys/dev/i2c/i2c_exec.c
--- a/sys/dev/i2c/i2c_exec.c    Mon Dec 23 13:35:37 2019 +0000
+++ b/sys/dev/i2c/i2c_exec.c    Mon Dec 23 14:26:19 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i2c_exec.c,v 1.13 2019/12/22 23:23:32 thorpej Exp $    */
+/*     $NetBSD: i2c_exec.c,v 1.14 2019/12/23 14:26:19 thorpej Exp $    */
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2c_exec.c,v 1.13 2019/12/22 23:23:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c_exec.c,v 1.14 2019/12/23 14:26:19 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -98,7 +98,9 @@
 iic_acquire_bus(i2c_tag_t tag, int flags)
 {
 
+#if 0  /* XXX Not quite ready for this yet. */
        KASSERT(!cpu_intr_p());
+#endif
 
        flags = iic_op_flags(flags);
 
@@ -151,7 +153,9 @@
 iic_release_bus(i2c_tag_t tag, int flags)
 {
 
+#if 0  /* XXX Not quite ready for this yet. */
        KASSERT(!cpu_intr_p());
+#endif
 
        flags = iic_op_flags(flags);
 
@@ -181,7 +185,9 @@
        int error;
        size_t len;
 
+#if 0  /* XXX Not quite ready for this yet. */
        KASSERT(!cpu_intr_p());
+#endif
 
        flags = iic_op_flags(flags);
 



Home | Main Index | Thread Index | Old Index