Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/i2c set flag to indicate that worker thread should b...



details:   https://anonhg.NetBSD.org/src/rev/5198fba704dd
branches:  trunk
changeset: 966521:5198fba704dd
user:      tnn <tnn%NetBSD.org@localhost>
date:      Sat Nov 02 14:23:59 2019 +0000

description:
set flag to indicate that worker thread should be created mpsafe

iic(4) is mpsafe, unlike spi(4) which hasn't been made mpsafe yet.

diffstat:

 sys/dev/i2c/ssdfb_i2c.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 6d356f01bb41 -r 5198fba704dd sys/dev/i2c/ssdfb_i2c.c
--- a/sys/dev/i2c/ssdfb_i2c.c   Sat Nov 02 14:18:36 2019 +0000
+++ b/sys/dev/i2c/ssdfb_i2c.c   Sat Nov 02 14:23:59 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssdfb_i2c.c,v 1.3 2019/05/28 17:17:16 tnn Exp $ */
+/* $NetBSD: ssdfb_i2c.c,v 1.4 2019/11/02 14:23:59 tnn Exp $ */
 
 /*
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.3 2019/05/28 17:17:16 tnn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ssdfb_i2c.c,v 1.4 2019/11/02 14:23:59 tnn Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -112,6 +112,7 @@
        if ((flags & SSDFB_ATTACH_FLAG_PRODUCT_MASK) == SSDFB_PRODUCT_UNKNOWN)
                flags |= SSDFB_PRODUCT_SSD1306_GENERIC;
 
+       flags |= SSDFB_ATTACH_FLAG_MPSAFE;
        sc->sc.sc_dev = self;
        sc->sc_i2c_tag = ia->ia_tag;
        sc->sc_i2c_addr = ia->ia_addr;



Home | Main Index | Thread Index | Old Index