]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a bus_add_child device method to bcm2835_sdhci.
authorbz <bz@FreeBSD.org>
Mon, 10 Jun 2019 21:24:38 +0000 (21:24 +0000)
committerbz <bz@FreeBSD.org>
Mon, 10 Jun 2019 21:24:38 +0000 (21:24 +0000)
commit47dc3579f9efadf0889e79aaa3eda112bca11ff7
tree776d3b57649da5b1243c596f0f4e3ca09d76e5ce
parent11834ac04814b9a1e2464608cca6c0dbded19b82
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