Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c Also force I2C_F_POLL if shutting_down.



details:   https://anonhg.NetBSD.org/src/rev/a8426917211e
branches:  trunk
changeset: 466803:a8426917211e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jan 02 16:18:37 2020 +0000

description:
Also force I2C_F_POLL if shutting_down.

diffstat:

 sys/dev/i2c/i2c_exec.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 527aee7599e7 -r a8426917211e sys/dev/i2c/i2c_exec.c
--- a/sys/dev/i2c/i2c_exec.c    Thu Jan 02 15:43:11 2020 +0000
+++ b/sys/dev/i2c/i2c_exec.c    Thu Jan 02 16:18:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i2c_exec.c,v 1.14 2019/12/23 14:26:19 thorpej Exp $    */
+/*     $NetBSD: i2c_exec.c,v 1.15 2020/01/02 16:18:37 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.14 2019/12/23 14:26:19 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2c_exec.c,v 1.15 2020/01/02 16:18:37 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -59,7 +59,7 @@
 iic_op_flags(int flags)
 {
 
-       return flags | (cold ? I2C_F_POLL : 0);
+       return flags | ((cold || shutting_down) ? I2C_F_POLL : 0);
 }
 
 /*



Home | Main Index | Thread Index | Old Index