acrn-kernel/drivers/mmc/core
Pali Rohár 254e175448 mmc: core: Export device/vendor ids from Common CIS for SDIO cards
Device/vendor ids from Common CIS (Card Information Structure) may be
different as device/vendor ids from CIS on particular SDIO function.

Kernel currently exports only device/vendor ids from SDIO functions and not
"main" device/vendor ids from Common CIS.

This patch exports "main" device/vendor ids for SDIO and SD combo cards at
top level mmc device in sysfs hierarchy.

Userspace can use e.g. udev rules to correctly match whole SDIO card based
on Common CIS device/vendor id and not only one particular SDIO function.
Having this information in userspace also helps developers to debug whole
SDIO card as e.g. kernel mmc quirks use device/vendor ids from Common CIS
and not from particular SDIO function. Also it allows to write userspace
applications which list all connected SDIO cards based on CIS ids.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Link: https://lore.kernel.org/r/20200527110858.17504-2-pali@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2020-05-29 12:38:00 +02:00
..
Kconfig
Makefile
block.c mmc: block: Fix use-after-free issue for rpmb 2020-05-25 10:45:17 +02:00
block.h
bus.c mmc: core: Export device/vendor ids from Common CIS for SDIO cards 2020-05-29 12:38:00 +02:00
bus.h
card.h
core.c mmc: core: Enable erase/discard/trim support for all mmc hosts 2020-05-28 11:22:14 +02:00
core.h
debugfs.c mmc: core: Use DEFINE_DEBUGFS_ATTRIBUTE instead of DEFINE_SIMPLE_ATTRIBUTE 2020-05-28 11:21:01 +02:00
host.c
host.h
mmc.c mmc: core: expose info about enhanced rpmb support 2020-05-28 11:21:03 +02:00
mmc_ops.c
mmc_ops.h
mmc_test.c
pwrseq.c
pwrseq.h
pwrseq_emmc.c
pwrseq_sd8787.c
pwrseq_simple.c
queue.c mmc: block: Fix request completion in the CQE timeout path 2020-05-08 10:15:51 +02:00
queue.h
quirks.h mmc: sdio: Fix macro name for Marvell device with ID 0x9134 2020-05-28 11:26:47 +02:00
regulator.c mmc: core: Return 1 from mmc_regulator_set_vqmmc() if switch skipped 2020-05-28 11:20:58 +02:00
sd.c mmc: core: Export device/vendor ids from Common CIS for SDIO cards 2020-05-29 12:38:00 +02:00
sd.h
sd_ops.c
sd_ops.h
sdio.c mmc: core: Export device/vendor ids from Common CIS for SDIO cards 2020-05-29 12:38:00 +02:00
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
slot-gpio.c
slot-gpio.h