From f1cfcbba3045c5d8cdb8966b044e9ba08eab2502 Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 14 Feb 2021 19:24:38 +0000 Subject: [PATCH] Enable clocks and adjust for removal of subnodes in upstream Linux device trees. --- sys/arch/armv7/exynos/exehci.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/armv7/exynos/exehci.c b/sys/arch/armv7/exynos/exehci.c index 6cff8880116..4d6af8b3f2e 100644 --- a/sys/arch/armv7/exynos/exehci.c +++ b/sys/arch/armv7/exynos/exehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exehci.c,v 1.8 2017/12/23 10:23:34 kettenis Exp $ */ +/* $OpenBSD: exehci.c,v 1.9 2021/02/14 19:24:38 kettenis Exp $ */ /* * Copyright (c) 2012-2013 Patrick Wildt * @@ -127,7 +127,7 @@ exehci_attach(struct device *parent, struct device *self, void *aux) node = OF_child(faa->fa_node); if (node == 0) - return; + node = faa->fa_node; if (OF_getpropintarray(node, "phys", phys, sizeof(phys)) != sizeof(phys)) @@ -160,6 +160,8 @@ exehci_attach(struct device *parent, struct device *self, void *aux) printf("\n"); + clock_enable_all(faa->fa_node); + exehci_setup(sc); sc->sc_ih = arm_intr_establish_fdt(faa->fa_node, IPL_USB, -- 2.20.1