Skip to content

Commit

Permalink
sdhci: add missing bus_add_child DEVMETHOD.
Browse files Browse the repository at this point in the history
Add the missing bus_add_child DEVMETHOD.  This is needed for the RPi5
running with a MMCCAM kernel and the worproject/rpi5-uefi to avoid a
kernel panic on boot when SDIO tries to attach to a 'Intel Bay Trail'
controller.

Reviewed by:	imp
MFC after:	3 days
Differential Revision: https://reviews.freebsd.org/D48152
  • Loading branch information
Bjoern A. Zeeb authored and Bjoern A. Zeeb committed Dec 20, 2024
1 parent 7030980 commit d7c69a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/dev/sdhci/sdhci_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ static device_method_t 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),

/* mmcbr_if */
DEVMETHOD(mmcbr_update_ios, sdhci_generic_update_ios),
Expand Down

0 comments on commit d7c69a3

Please sign in to comment.