]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a bus_add_child device method to bcm2835_sdhci.
authorBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 10 Jun 2019 21:24:38 +0000 (21:24 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 10 Jun 2019 21:24:38 +0000 (21:24 +0000)
commit0422393286ffd448f3d2615cb56c4f3c37a94d32
tree776d3b57649da5b1243c596f0f4e3ca09d76e5ce
parent4fc7bd0519b4006f62b95528e70b67d7e15b1c7c
Add a bus_add_child device method to bcm2835_sdhci.

This allows SDIO (through CAM) to attach to an upstream, e.g.,
      ..
      sdhci_bcm0 pnpinfo name=mmc@7e300000 compat=brcm,bcm2835-mmc
        sdiob0
          ..

Without this, upon trying to load sdio, we would panic with
"bus_add_child is not implemented".

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
sys/arm/broadcom/bcm2835/bcm2835_sdhci.c