]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
kernel: add eMMC 5.x support.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 11 Oct 2014 07:26:57 +0000 (09:26 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 11 Oct 2014 07:26:57 +0000 (09:26 +0200)
lfs/linux
src/patches/linux-3.10.57-mmc_add_eMMC_5.x.patch [new file with mode: 0644]

index 80d899709321571f2ef4910f05645e5bfc154c99..f78c911043de097b292afe06b8d236862aec2216 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -144,6 +144,9 @@ endif
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.55-rt2800usb-change_queue_warn_to_debug.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.39-add_libertas_uap.patch
 
+       # mmc
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.10.57-mmc_add_eMMC_5.x.patch
+
        # mISDN Patches
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/mISDN_hfc-s_add_id.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/mISDN-hfcusb-reportl1down.patch
diff --git a/src/patches/linux-3.10.57-mmc_add_eMMC_5.x.patch b/src/patches/linux-3.10.57-mmc_add_eMMC_5.x.patch
new file mode 100644 (file)
index 0000000..7fa4330
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur linux-3.10.57.org/drivers/mmc/core/mmc.c linux-3.10.57/drivers/mmc/core/mmc.c
+--- linux-3.10.57.org/drivers/mmc/core/mmc.c   2014-10-09 21:18:54.000000000 +0200
++++ linux-3.10.57/drivers/mmc/core/mmc.c       2014-10-11 09:20:02.225472403 +0200
+@@ -293,7 +293,7 @@
+       }
+       card->ext_csd.rev = ext_csd[EXT_CSD_REV];
+-      if (card->ext_csd.rev > 6) {
++      if (card->ext_csd.rev > 7) {
+               pr_err("%s: unrecognised EXT_CSD revision %d\n",
+                       mmc_hostname(card->host), card->ext_csd.rev);
+               err = -EINVAL;