linux/drivers/mmc/core
Ulf Hansson 5d54ed1550 mmc: core: Fixup storing of OCR for MMC_QUIRK_NONSTD_SDIO
[ Upstream commit 8c3e5b74b9 ]

The mmc core takes a specific path to support initializing of a
non-standard SDIO card. This is triggered by looking for the card-quirk,
MMC_QUIRK_NONSTD_SDIO.

In mmc_sdio_init_card() this gets rather messy, as it causes the code to
bail out earlier, compared to the usual path. This leads to that the OCR
doesn't get saved properly in card->ocr. Fortunately, only omap_hsmmc has
been using the MMC_QUIRK_NONSTD_SDIO and is dealing with the issue, by
assigning a hardcoded value (0x80) to card->ocr from an ->init_card() ops.

To make the behaviour consistent, let's instead rely on the core to save
the OCR in card->ocr during initialization.

Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Link: https://lore.kernel.org/r/e7936cff7fc24d187ef2680d3b4edb0ade58f293.1636564631.git.hns@goldelico.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 10:54:16 +01:00
..
block.c mmc: core: Return correct emmc response in case of ioctl error 2021-09-18 13:40:32 +02:00
block.h
bus.c
bus.h
card.h
core.c mmc: core: Disable card detect during shutdown 2021-12-29 12:26:04 +01:00
core.h mmc: core: Disable card detect during shutdown 2021-12-29 12:26:04 +01:00
debugfs.c
host.c mmc: core: Disable card detect during shutdown 2021-12-29 12:26:04 +01:00
host.h
Kconfig
Makefile
mmc_ops.c mmc: block: Issue a cache flush only when it's enabled 2021-05-11 14:47:14 +02:00
mmc_ops.h
mmc_test.c
mmc.c mmc: block: Issue a cache flush only when it's enabled 2021-05-11 14:47:14 +02:00
pwrseq_emmc.c
pwrseq_sd8787.c
pwrseq_simple.c
pwrseq.c
pwrseq.h
queue.c
queue.h
quirks.h
regulator.c
sd_ops.c
sd_ops.h
sd.c mmc: core: Allow UHS-I voltage switch for SDSC cards if supported 2021-07-19 09:44:59 +02:00
sd.h
sdio_bus.c
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c
sdio_ops.c
sdio_ops.h
sdio_uart.c
sdio.c mmc: core: Fixup storing of OCR for MMC_QUIRK_NONSTD_SDIO 2022-01-27 10:54:16 +01:00
slot-gpio.c
slot-gpio.h