Fix "mmc2: unrecognised EXT_CSD revision 8"

This commit is contained in:
gleam2003 2018-01-18 12:02:01 +01:00 committed by GitHub
parent dd5582f73e
commit dcedd6c2ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,12 @@
diff -Naur a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
--- a/drivers/mmc/core/mmc.c 2017-12-11 18:37:58.908013000 +0100
+++ b/drivers/mmc/core/mmc.c 2018-01-18 11:55:47.942244701 +0100
@@ -262,7 +262,7 @@
}
card->ext_csd.rev = ext_csd[EXT_CSD_REV];
- if (card->ext_csd.rev > 7) {
+ if (card->ext_csd.rev > 8) {
pr_err("%s: unrecognised EXT_CSD revision %d\n",
mmc_hostname(card->host), card->ext_csd.rev);
err = -EINVAL;