Linux3.0.35支持emmc5.0

Linux3.0.35内核目前只支持emmc4.5以下,所有使用最新的emmc5.0以上就需要作出以下修改:
drivers/mmc/core/mmc.c

 --- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -260,7 +260,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
 
        card->ext_csd.rev = ext_csd[EXT_CSD_REV];
        /* workaround: support emmc 4.5 cards to work at emmc 4.4 mode */
-       if (card->ext_csd.rev > 6) {
+       if (card->ext_csd.rev > 8) {
                printk(KERN_ERR "%s: unrecognised EXT_CSD revision %d\n",
                        mmc_hostname(card->host), card->ext_csd.rev);
                err = -EINVAL;


你可能感兴趣的:(Linux)