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
This commit is contained in:
parent
4fc7bd0519
commit
0422393286
@ -708,6 +708,7 @@ static device_method_t bcm_sdhci_methods[] = {
|
||||
/* Bus interface */
|
||||
DEVMETHOD(bus_read_ivar, sdhci_generic_read_ivar),
|
||||
DEVMETHOD(bus_write_ivar, sdhci_generic_write_ivar),
|
||||
DEVMETHOD(bus_add_child, bus_generic_add_child),
|
||||
|
||||
/* MMC bridge interface */
|
||||
DEVMETHOD(mmcbr_update_ios, sdhci_generic_update_ios),
|
||||
|
Loading…
Reference in New Issue
Block a user