* Autoloading of mmc_block for SD/MMC interfaces
@ 2006-01-31 18:26 Matthew Garrett
2006-01-31 18:34 ` Marco d'Itri
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Garrett @ 2006-01-31 18:26 UTC (permalink / raw)
To: linux-hotplug
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/csd
8c7f002a1f5983d3f6da8fff9e600000
^^^
12 bits - 0x95f
100101011111
^ CCC_BLOCK_READ
--
Matthew Garrett | mjg59@srcf.ucam.org
-------------------------------------------------------
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&kid\x103432&bid#0486&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-31 18:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-31 18:26 Autoloading of mmc_block for SD/MMC interfaces Matthew Garrett
2006-01-31 18:34 ` Marco d'Itri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).