Date: Mon, 7 May 2018 07:31:25 +0000 (UTC) From: Emmanuel Vadot <manu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333319 - head/sys/arm64/rockchip/clk Message-ID: <201805070731.w477VPMI075696@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: manu Date: Mon May 7 07:31:25 2018 New Revision: 333319 URL: https://svnweb.freebsd.org/changeset/base/333319 Log: arm64: rockchip: cru: Call clk_set_assigned We need to call clk_set_assigned after all the clock have been registered to set the parents/rates described in the dtb. Modified: head/sys/arm64/rockchip/clk/rk_cru.c Modified: head/sys/arm64/rockchip/clk/rk_cru.c ============================================================================== --- head/sys/arm64/rockchip/clk/rk_cru.c Mon May 7 07:30:40 2018 (r333318) +++ head/sys/arm64/rockchip/clk/rk_cru.c Mon May 7 07:31:25 2018 (r333319) @@ -197,11 +197,14 @@ int rk_cru_attach(device_t dev) { struct rk_cru_softc *sc; + phandle_t node; int i; sc = device_get_softc(dev); sc->dev = dev; + node = ofw_bus_get_node(dev); + if (bus_alloc_resources(dev, rk_cru_spec, &sc->res) != 0) { device_printf(dev, "cannot allocate resources for device\n"); return (ENXIO); @@ -241,6 +244,8 @@ rk_cru_attach(device_t dev) if (bootverbose) clkdom_dump(sc->clkdom); + + clk_set_assigned(dev, node); /* If we have resets, register our self as a reset provider */ if (sc->resets)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805070731.w477VPMI075696>