Autoloading of mmc_block for SD/MMC interfaces
Hi,
Currently, mmc_block isn't autoloaded when an MMC or SD card is inserted. On card insertion, /sys/bus/mmc/devices/mmc0:0001 (or similar) is created. In this is a file called csd, which is a dump of 128 bits of card specific data. According to drivers/mmc/mmc.c, the 12 bits starting at bit 84 define the commands that the card will respond to. include/linux/mmc/protocol.h specifies these - if bit 2 is set (BLOCK_READ), then mmc_block should be loaded.
Sample dump:
tyrosine% cat /sys/bus/mmc/devices/mmc0:0001/csd8c7f002a1f5983d3f6da8fff9e600000
^^^
12 bits - 0x95f
100101011111
^ CCC_BLOCK_READ
Signature · 12 lines
Matthew Garrett | [email protected] ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 2 lines · Matthew Garrett
Currently,
mmc_blockisn't autoloaded when an MMC or SD card is inserted. On card insertion,/sys/bus/mmc/devices/mmc0:0001(or similar)
If there also other drivers for MMC cards exist then looks like they should use $MODALIAS.
Signature · 2 lines
ciao, Marco