Blame SOURCES/0177-kernel-modules-Fix-storage-module-selection-for-sdhc.patch

18971c
From 9c45cb9c117505191f2678e25edac481ff6da9f2 Mon Sep 17 00:00:00 2001
18971c
From: Peter Robinson <pbrobinson@gmail.com>
18971c
Date: Fri, 23 May 2014 11:54:01 +0100
18971c
Subject: [PATCH] kernel-modules: Fix storage module selection for
18971c
 sdhci/mmc/ahci
18971c
18971c
Currently the block driver detection for generic initrd doesn't include
18971c
the SD/MMC drivers so we fail to boot generic images on any device using
18971c
those platforms as boot devices when using a generic initrd. Add logic
18971c
to detect those modules. This primarily fixes embedded ARM devices but
18971c
also likely intel tablets/dev boards and enterprise hypervisors that
18971c
have the ability to boot from SD.
18971c
18971c
Also the ahci_init_controller misses a number of drivers that use the
18971c
libahci_platform module for the init so this fixes some missing achi
18971c
moduless too.
18971c
18971c
Finally it cleans up the ARM storage module hacks that the above now
18971c
deals with in a more generic manner.
18971c
18971c
Signed-off-by: <pbrobinson@gmail.com>
18971c
(cherry picked from commit 827ec27a9c36755095dda899eff75cdae78b2120)
18971c
---
18971c
 modules.d/90kernel-modules/module-setup.sh | 6 ++----
18971c
 1 file changed, 2 insertions(+), 4 deletions(-)
18971c
18971c
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
18971c
index a7803d00..603a7a19 100755
18971c
--- a/modules.d/90kernel-modules/module-setup.sh
18971c
+++ b/modules.d/90kernel-modules/module-setup.sh
18971c
@@ -5,7 +5,7 @@
18971c
 installkernel() {
18971c
     if [[ -z $drivers ]]; then
18971c
         block_module_filter() {
18971c
-            local _blockfuncs='ahci_init_controller|ata_scsi_ioctl|scsi_add_host|blk_cleanup_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device|usb_stor_disconnect'
18971c
+            local _blockfuncs='ahci_platform_get_resources|ata_scsi_ioctl|scsi_add_host|blk_cleanup_queue|register_mtd_blktrans|scsi_esp_register|register_virtio_device|usb_stor_disconnect|mmc_add_host|sdhci_pltfm_init'
18971c
             # subfunctions inherit following FDs
18971c
             local _merge=8 _side2=9
18971c
             function bmf1() {
18971c
@@ -50,9 +50,7 @@ installkernel() {
18971c
 
18971c
         if [[ "$(uname -p)" == arm* ]]; then
18971c
             # arm specific modules
18971c
-            hostonly='' instmods sdhci_esdhc_imx mmci sdhci_tegra mvsdio omap omapdrm \
18971c
-                omap_hsmmc panel-tfp410 sdhci_dove ahci_platform pata_imx sata_mv \
18971c
-                ehci-tegra mmc_block usb_storage
18971c
+            hostonly='' instmods omapdrm panel-tfp410
18971c
         fi
18971c
 
18971c
         # install virtual machine support