opnsense-src/sys/dev/mmc/host
Bartlomiej Grzesik 2f9a9149e5 mmc: switch mmc_helper to device_ api
Add generic mmc_helper which uses newly introduced device_*_property
api. Thanks to this change the sd/mmc drivers will be capable
of parsing both DT and ACPI description.

Ensure backward compatibility for all mmc_fdt_helper users.

Reviewed by: manu, mw
Sponsored by: Semihalf
Differential revision: https://reviews.freebsd.org/D31598

(cherry picked from commit 8a8166e5bc)

mmc: Fix regression in 8a8166e5bc breaking Stratix 10 boot

The refactoring in 8a8166e5bc introduced a functional change that
breaks booting on the Stratix 10, hanging when it should be attaching
da0. Previously OF_getencprop was called with a pointer to host->f_max,
so if it wasn't present then the existing value was left untouched, but
after that commit it will instead clobber the value with 0. The dwmmc
driver, as used on the Stratix 10, sets a default value before calling
mmc_fdt_parse and so was broken by this functional change. It appears
that aw_mmc also does the same thing, so was presumably also broken on
some boards.

Fixes:	8a8166e5bc ("mmc: switch mmc_helper to device_ api")
Reviewed by:	manu, mw
Differential Revision:	https://reviews.freebsd.org/D32209

(cherry picked from commit 4a331971d2)
2022-03-30 00:24:26 +02:00
..
dwmmc.c mmc_da: implement d_dump method, sddadump 2022-01-26 09:27:21 +02:00
dwmmc_altera.c arm: dwmmc: Use mmc_fdt_helpers 2020-04-14 16:35:18 +00:00
dwmmc_hisi.c arm: dwmmc: Use mmc_fdt_helpers 2020-04-14 16:35:18 +00:00
dwmmc_reg.h
dwmmc_rockchip.c arm: dwmmc: Use mmc_fdt_helpers 2020-04-14 16:35:18 +00:00
dwmmc_samsung.c arm: dwmmc: Use mmc_fdt_helpers 2020-04-14 16:35:18 +00:00
dwmmc_var.h mmc: switch mmc_helper to device_ api 2022-03-30 00:24:26 +02:00