qemu-e2k/hw/sd
Bernhard Beschow 3b83079015 hw/sd/sdhci: Do not force sdhci_mmio_*_ops onto all SD controllers
Since commit c0a55a0c9d "hw/sd/sdhci: Support big endian SD host controller
interfaces" sdhci_common_realize() forces all SD card controllers to use either
sdhci_mmio_le_ops or sdhci_mmio_be_ops, depending on the "endianness" property.
However, there are device models which use different MMIO ops: TYPE_IMX_USDHC
uses usdhc_mmio_ops and TYPE_S3C_SDHCI uses sdhci_s3c_mmio_ops.

Forcing sdhci_mmio_le_ops breaks SD card handling on the "sabrelite" board, for
example. Fix this by defaulting the io_ops to little endian and switch to big
endian in sdhci_common_realize() only if there is a matchig big endian variant
available.

Fixes: c0a55a0c9d ("hw/sd/sdhci: Support big endian SD host controller
interfaces")

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Message-Id: <20230709080950.92489-1-shentey@gmail.com>
2023-07-25 14:40:49 +02:00
..
allwinner-sdhost.c hw/sd/allwinner-sdhost: Don't send non-boolean IRQ line levels 2023-06-19 11:24:21 +01:00
aspeed_sdhci.c Mark remaining global TypeInfo instances as const 2022-02-21 13:30:20 +00:00
bcm2835_sdhost.c Mark remaining global TypeInfo instances as const 2022-02-21 13:30:20 +00:00
cadence_sdhci.c Mark remaining global TypeInfo instances as const 2022-02-21 13:30:20 +00:00
core.c
Kconfig
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
npcm7xx_sdhci.c Mark remaining global TypeInfo instances as const 2022-02-21 13:30:20 +00:00
omap_mmc.c hw/arm/omap: Drop useless casts from void * to pointer 2023-01-12 17:15:09 +00:00
pl181.c
pxa2xx_mmci.c
sd.c replace TABs with spaces 2023-03-20 12:43:50 +01:00
sdhci-internal.h hw/sd/sdhci: Support big endian SD host controller interfaces 2022-12-21 14:17:55 -03:00
sdhci-pci.c
sdhci.c hw/sd/sdhci: Do not force sdhci_mmio_*_ops onto all SD controllers 2023-07-25 14:40:49 +02:00
sdmmc-internal.c
sdmmc-internal.h
ssi-sd.c
trace-events
trace.h