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/1a8495a3f626
branches:  trunk
changeset: 968092:1a8495a3f626
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 bb554e921154 -r 1a8495a3f626 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