I am expecting the mmc-block module to get slurped up as a dependancy on any interface specific module which is loaded. Looking at my laptop I seem to have an MMC slot so I am able to test it.
$ lsmod | grep mmc mmc_core 67296 1 sdhci ricoh_mmc 12672 0 $
Shoved in an SD card:
[289098.924301] mmc0: new SD card at address e624 [289099.085615] mmcblk0: mmc0:e624 SD01G 992000KiB [289099.086534] mmcblk0: p1
and now:
$ lsmod | grep mmc mmc_block 19720 2 mmc_core 67296 2 mmc_block,sdhci ricoh_mmc 12672 0 $
As it was loaded on detection of the media I assume this was loaded by udev? Do you have an example where it does not work this way?
I am expecting the mmc-block module to get slurped up as a dependancy on any interface specific module which is loaded. Looking at my laptop I seem to have an MMC slot so I am able to test it.
$ lsmod | grep mmc
mmc_core 67296 1 sdhci
ricoh_mmc 12672 0
$
Shoved in an SD card:
[289098.924301] mmc0: new SD card at address e624
[289099.085615] mmcblk0: mmc0:e624 SD01G 992000KiB
[289099.086534] mmcblk0: p1
and now:
$ lsmod | grep mmc
mmc_block 19720 2
mmc_core 67296 2 mmc_block,sdhci
ricoh_mmc 12672 0
$
As it was loaded on detection of the media I assume this was loaded by udev? Do you have an example where it does not work this way?