From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Robinson Subject: [PATCH] kernel-modules: Fix storage module selection for sdhci/mmc/ahci Date: Fri, 23 May 2014 11:54:01 +0100 Message-ID: <1400842441-3728-1-git-send-email-pbrobinson@gmail.com> Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Rv+JdhdKgyLPCPUTNs+i79/DNOn7TlE83v3yGJfN+VE=; b=aGp0VIgqpN0I9YCdsYsynNU309g89CYDNNaZBns8Vw0xVM83bRVP1HUzrq4t4nzVHc 5Sm8h44j7Ua+58F2UfFI1ul2oUU6w8i7K0rGmPajmBWgSqGB6INZVAJ8pmhM+cZSmUOV BLAFrrSqBa190kHdbtIhmCFMLQOx6J+jrAIFj9lH7eImeMAlvrCGCSxsXn33Qg7XmEoM yiusowlvu1DrYdmXmrT06XJrXICQ/NqBD37gHCRad8YcoW4+spqXAejw+BDeEM27ihGE dloPz0439NgLLTfUq+1l25q57CPS4UjZyxdeXszuNlIH+vARL9lEY2Dfk7yCt1S5kBAd wo6A== Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Peter Robinson Currently the block driver detection for generic initrd doesn't include the SD/MMC drivers so we fail to boot generic images on any device using those platforms as boot devices when using a generic initrd. Add logic to detect those modules. This primarily fixes embedded ARM devices but also likely intel tablets/dev boards and enterprise hypervisors that have the ability to boot from SD. Also the ahci_init_controller misses a number of drivers that use the libahci_platform module for the init so this fixes some missing achi moduless too. Finally it cleans up the ARM storage module hacks that the above now deals with in a more generic manner. Signed-off-by: --- modules.d/90kernel-modules/module-setup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh index 2378663..5271438 100755 --- a/modules.d/90kernel-modules/module-setup.sh +++ b/modules.d/90kernel-modules/module-setup.sh @@ -6,7 +6,7 @@ installkernel() { if [[ -z $drivers ]]; then block_module_filter() { - 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' + 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' # subfunctions inherit following FDs local _merge=8 _side2=9 function bmf1() { @@ -51,9 +51,7 @@ installkernel() { if [[ "$(uname -p)" == arm* ]]; then # arm specific modules - hostonly='' instmods sdhci_esdhc_imx mmci sdhci_tegra mvsdio omap omapdrm \ - omap_hsmmc panel-tfp410 sdhci_dove ahci_platform pata_imx sata_mv \ - ehci-tegra mmc_block usb_storage + hostonly='' instmods omapdrm panel-tfp410 fi # install virtual machine support -- 1.9.3