kernel_samsung_a53x/drivers/mmc/core
Avri Altman 7a057ceeb5 mmc: core: Capture correct oemid-bits for eMMC cards
commit 84ee19bffc9306128cd0f1c650e89767079efeff upstream.

The OEMID is an 8-bit binary number rather than 16-bit as the current code
parses for. The OEMID occupies bits [111:104] in the CID register, see the
eMMC spec JESD84-B51 paragraph 7.2.3. It seems that the 16-bit comes from
the legacy MMC specs (v3.31 and before).

Let's fix the parsing by simply move to use 8-bit instead of 16-bit. This
means we ignore the impact on some of those old MMC cards that may be out
there, but on the other hand this shouldn't be a problem as the OEMID seems
not be an important feature for these cards.

Signed-off-by: Avri Altman <avri.altman@wdc.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230927071500.1791882-1-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-08 11:26:18 +01:00
..
block.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
block.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bus.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
card.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crypto.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc.c mmc: core: Capture correct oemid-bits for eMMC cards 2024-11-08 11:26:18 +01:00
mmc_ops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc_ops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mmc_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwrseq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwrseq.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwrseq_emmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwrseq_sd8787.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pwrseq_simple.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
queue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
queue.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quirks.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regulator.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sd_ops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sd_ops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio.c mmc: core: sdio: hold retuning if sdio in 1-bit mode 2024-11-08 11:26:18 +01:00
sdio_bus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_bus.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_cis.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_cis.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_io.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_ops.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_ops.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sdio_uart.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
slot-gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
slot-gpio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00