alistair23-linux/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
..
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 mmc: core: Re-work HW reset for SDIO cards 2019-11-14 16:28:56 +01:00
debugfs.c mmc: core: Use DEFINE_DEBUGFS_ATTRIBUTE instead of DEFINE_SIMPLE_ATTRIBUTE 2020-05-28 11:21:01 +02:00
host.c mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00
host.h
Kconfig
Makefile
mmc.c mmc: core: expose info about enhanced rpmb support 2020-05-28 11:21:03 +02:00
mmc_ops.c mmc: core: make mmc_interrupt_hpi() static 2020-04-20 09:24:39 +02:00
mmc_ops.h mmc: core: Re-work the code for eMMC sanitize 2020-03-26 14:45:31 +01:00
mmc_test.c mmc: mmc_test: Pass different sg lists for non-blocking requests 2020-03-24 14:35:42 +01:00
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 mmc: core: Re-work HW reset for SDIO cards 2019-11-14 16:28:56 +01:00
sdio_bus.h
sdio_cis.c
sdio_cis.h
sdio_io.c
sdio_irq.c mmc: core: Fix indentation 2020-03-24 14:35:42 +01:00
sdio_ops.c
sdio_ops.h
sdio_uart.c
slot-gpio.c mmc: core: Remove mmc_gpiod_request_*(invert_gpio) 2019-12-18 13:37:07 +01:00
slot-gpio.h