Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/fdt Register each virtual bus's i2c_tag_t so that re...



details:   https://anonhg.NetBSD.org/src/rev/674b47728c29
branches:  trunk
changeset: 958104:674b47728c29
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Dec 23 16:04:42 2020 +0000

description:
Register each virtual bus's i2c_tag_t so that references for e.g. HDMI DDC
in the device tree work.

diffstat:

 sys/dev/fdt/i2cmux_fdt.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 0bca8aeebb10 -r 674b47728c29 sys/dev/fdt/i2cmux_fdt.c
--- a/sys/dev/fdt/i2cmux_fdt.c  Wed Dec 23 16:02:11 2020 +0000
+++ b/sys/dev/fdt/i2cmux_fdt.c  Wed Dec 23 16:04:42 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i2cmux_fdt.c,v 1.1 2020/12/23 04:09:32 thorpej Exp $   */
+/*     $NetBSD: i2cmux_fdt.c,v 1.2 2020/12/23 16:04:42 thorpej Exp $   */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i2cmux_fdt.c,v 1.1 2020/12/23 04:09:32 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i2cmux_fdt.c,v 1.2 2020/12/23 16:04:42 thorpej Exp $");
 
 #include <sys/types.h>
 #include <sys/device.h>
@@ -366,6 +366,8 @@
        bus->controller.ic_release_bus = iicmux_release_bus;
        bus->controller.ic_exec = iicmux_exec;
 
+       fdtbus_register_i2c_controller(&bus->controller, bus->phandle);
+
        fdtbus_attach_i2cbus(sc->sc_dev, bus->phandle, &bus->controller,
            iicmux_print);
 }



Home | Main Index | Thread Index | Old Index