浏览代码

BUILD-382 Korrektur EXT_CSD_REV für neue BeagleboneBlack systeme

Reinhard Russinger 7 年之前
父节点
当前提交
1a3cf3aace

+ 1 - 1
board/GfA/Display001/BUILD

@@ -1 +1 @@
-381
+382

+ 21 - 0
board/GfA/Display001/linux_3.12.30/linux-021-fix-mmc-CSD_REV-forward-compat.patch

@@ -0,0 +1,21 @@
+--- a/drivers/mmc/core/mmc.c	2014-10-09 15:46:37.000000000 +0200
++++ b/drivers/mmc/core/mmc.c	2017-10-11 11:13:37.992897640 +0200
+@@ -292,13 +292,12 @@
+ 		}
+ 	}
+ 
++	/*
++	* The EXT_CSD format is meant to be forward compatible. As long
++	* as CSD_STRUCTURE does not change, all values for EXT_CSD_REV
++	* are authorized, see JEDEC JESD84-B50 section B.8.
++	*/
+ 	card->ext_csd.rev = ext_csd[EXT_CSD_REV];
+-	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;
+-		goto out;
+-	}
+ 
+ 	card->ext_csd.raw_sectors[0] = ext_csd[EXT_CSD_SEC_CNT + 0];
+ 	card->ext_csd.raw_sectors[1] = ext_csd[EXT_CSD_SEC_CNT + 1];