Module Name:    src
Committed By:   thorpej
Date:           Thu Jan  2 16:18:37 UTC 2020

Modified Files:
        src/sys/dev/i2c: i2c_exec.c

Log Message:
Also force I2C_F_POLL if shutting_down.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/i2c/i2c_exec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/i2c_exec.c
diff -u src/sys/dev/i2c/i2c_exec.c:1.14 src/sys/dev/i2c/i2c_exec.c:1.15
--- src/sys/dev/i2c/i2c_exec.c:1.14	Mon Dec 23 14:26:19 2019
+++ src/sys/dev/i2c/i2c_exec.c	Thu Jan  2 16:18:37 2020
@@ -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 @@ static inline int
 iic_op_flags(int flags)
 {
 
-	return flags | (cold ? I2C_F_POLL : 0);
+	return flags | ((cold || shutting_down) ? I2C_F_POLL : 0);
 }
 
 /*

Reply via email to