]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
am335x_prcm: Delay the frequencies read check
authormanu <manu@FreeBSD.org>
Sun, 6 May 2018 14:37:11 +0000 (14:37 +0000)
committermanu <manu@FreeBSD.org>
Sun, 6 May 2018 14:37:11 +0000 (14:37 +0000)
commit72f45d4f7adab3d66f7e306244a1510784a82f20
treed14e388ca8f3dbe891eaf4b9d45f41fb0173054f
parente313499b237a35fe642e8dd4d07556f7c793765a
am335x_prcm: Delay the frequencies read check

With Linux 4.17 dts the compatible for the prcm added 'simplebus' we mean
that the simplebus driver will attach to it at the BUS_PASS_BUS pass.
Change the pass for the prcm driver to be at BUS_PASS_BUS so we will win
the attach.
This introduce a problem as this driver needs the ti_scm one to be already
attached. ti_scm also attach at BUS_PASS_BUS but after the prcm one as it is
after in the dtb and the simplebus driver simpy walk the tree to attach it's
children.
Use the bus_new_pass method to defer the frequencies read at BUS_PASS_TIMER.
This fixes booting on BeagleBone*

Reported by: many
sys/arm/ti/am335x/am335x_prcm.c