Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/dev/fdt/fdt_i2c.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/dev/fdt/fdt_i2c.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.2.20.1 retrieving revision 1.2.20.2 diff -u -p -r1.2.20.1 -r1.2.20.2 --- src/sys/dev/fdt/fdt_i2c.c 2018/07/28 04:37:44 1.2.20.1 +++ src/sys/dev/fdt/fdt_i2c.c 2018/09/30 01:45:49 1.2.20.2 @@ -1,4 +1,4 @@ -/* $NetBSD: fdt_i2c.c,v 1.2.20.1 2018/07/28 04:37:44 pgoyette Exp $ */ +/* $NetBSD: fdt_i2c.c,v 1.2.20.2 2018/09/30 01:45:49 pgoyette Exp $ */ /*- * Copyright (c) 2015 Jared D. McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fdt_i2c.c,v 1.2.20.1 2018/07/28 04:37:44 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fdt_i2c.c,v 1.2.20.2 2018/09/30 01:45:49 pgoyette Exp $"); #include #include @@ -93,7 +93,7 @@ device_t fdtbus_attach_i2cbus(device_t dev, int phandle, i2c_tag_t tag, cfprint_t print) { struct i2cbus_attach_args iba; - prop_dictionary_t devs; + prop_dictionary_t devs, props; u_int address_cells; devs = prop_dictionary_create(); @@ -109,5 +109,8 @@ fdtbus_attach_i2cbus(device_t dev, int p prop_object_retain(iba.iba_child_devices); prop_object_release(devs); + props = device_properties(dev); + prop_dictionary_set_bool(props, "i2c-indirect-config", false); + return config_found_ia(dev, "i2cbus", &iba, print); }