Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/i2c Call iic_exec() with I2C_F_POLL. Don't sleep in...
details: https://anonhg.NetBSD.org/src/rev/e91be02d7e1b
branches: trunk
changeset: 788905:e91be02d7e1b
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Sun Jul 28 06:12:45 2013 +0000
description:
Call iic_exec() with I2C_F_POLL. Don't sleep in probe/attach time.
diffstat:
sys/dev/i2c/spdmem_i2c.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6e3bd944b6c2 -r e91be02d7e1b sys/dev/i2c/spdmem_i2c.c
--- a/sys/dev/i2c/spdmem_i2c.c Sun Jul 28 04:49:03 2013 +0000
+++ b/sys/dev/i2c/spdmem_i2c.c Sun Jul 28 06:12:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spdmem_i2c.c,v 1.6 2012/09/12 00:36:41 pgoyette Exp $ */
+/* $NetBSD: spdmem_i2c.c,v 1.7 2013/07/28 06:12:45 kiyohara Exp $ */
/*
* Copyright (c) 2007 Nicolas Joly
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.6 2012/09/12 00:36:41 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spdmem_i2c.c,v 1.7 2013/07/28 06:12:45 kiyohara Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -129,7 +129,7 @@
iic_acquire_bus(sc->sc_tag, 0);
iic_exec(sc->sc_tag, I2C_OP_READ_WITH_STOP, sc->sc_addr, ®, 1,
- &val, 1, 0);
+ &val, 1, I2C_F_POLL);
iic_release_bus(sc->sc_tag, 0);
return val;
Home |
Main Index |
Thread Index |
Old Index