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

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