svn commit: r348878 - head/sys/arm/broadcom/bcm2835

Bjoern A. Zeeb bz at FreeBSD.org
Mon Jun 10 21:24:39 UTC 2019


Author: bz
Date: Mon Jun 10 21:24:38 2019
New Revision: 348878
URL: https://svnweb.freebsd.org/changeset/base/348878

Log:
  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 at 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

Modified:
  head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c

Modified: head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
==============================================================================
--- head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c	Mon Jun 10 19:38:35 2019	(r348877)
+++ head/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c	Mon Jun 10 21:24:38 2019	(r348878)
@@ -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),


More information about the svn-src-all mailing list