Improve how quirks are handled on sdhc(4)-compatible drivers. So far
authorpatrick <patrick@openbsd.org>
Tue, 18 Jan 2022 11:36:21 +0000 (11:36 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 18 Jan 2022 11:36:21 +0000 (11:36 +0000)
commitbfa5fdb5f0a76cb47f36d53ec1ef502ba9eb90ce
tree607d425708c12fae46032fa0e43e539f19891b05
parentba7d956b15f0f736629f3eb111ca861c4acfac81
Improve how quirks are handled on sdhc(4)-compatible drivers.  So far
we have passed a modified version of the contents in the capabilities
register if we wanted to override what sdhc(4) would otherwise read.
Unfortunately there's a second capabilities register that we did not
yet take into consideration, which is why to disable DDR50 support we
created a quirk flag in the softc.  The sdhc(4) ACPI nodes have a way
to mask and set bits in both of the capabilities register, which is a
flexible approach to solving that issue and using that for our sdhc(4)
drivers even improves readability.

ok kettenis@
sys/arch/armv7/marvell/mvpxa.c
sys/dev/acpi/sdhc_acpi.c
sys/dev/fdt/cdsdhc.c
sys/dev/fdt/sdhc_fdt.c
sys/dev/pci/sdhc_pci.c
sys/dev/sdmmc/sdhc.c
sys/dev/sdmmc/sdhcvar.h