summaryrefslogtreecommitdiff
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorjdc <jdc@NetBSD.org>2013-09-24 18:04:53 +0000
committerjdc <jdc@NetBSD.org>2013-09-24 18:04:53 +0000
commit0785abbbfd7d2e2da99f2d8d58a598d338a44ece (patch)
tree1b2d5cae379f0b77c73a24137a080e2bdf5cde95 /sys/dev/ofw
parent6a7ed08b0e7842a333fa3c1bab7e9f642e946630 (diff)
Add a property "i2c-indirect-config" to allow/disallow i2c indirect config.
If missing, "allowed" is assumed. Set it to false for OFW machines. Patch from martin@. Removes erroneous i2c probe messages that appeared with wildcard support.
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_subr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ofw/ofw_subr.c b/sys/dev/ofw/ofw_subr.c
index c36cdcf29f5..060a259488c 100644
--- a/sys/dev/ofw/ofw_subr.c
+++ b/sys/dev/ofw/ofw_subr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_subr.c,v 1.21 2013/02/08 15:17:00 jdc Exp $ */
+/* $NetBSD: ofw_subr.c,v 1.22 2013/09/24 18:04:53 jdc Exp $ */
/*
* Copyright 1998
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.21 2013/02/08 15:17:00 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw_subr.c,v 1.22 2013/09/24 18:04:53 jdc Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -393,4 +393,6 @@ of_enter_i2c_devs(prop_dictionary_t props, int ofnode, size_t cell_size)
prop_dictionary_set(props, "i2c-child-devices", array);
prop_object_release(array);
}
+
+ prop_dictionary_set_bool(props, "i2c-indirect-config", false);
}