projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1193299
)
emmc: do NOT alloc boot partition now
author
kfx
<kfx@rock-chips.com>
Sat, 20 Jul 2013 06:51:00 +0000
(14:51 +0800)
committer
kfx
<kfx@rock-chips.com>
Sat, 20 Jul 2013 06:51:00 +0000
(14:51 +0800)
drivers/mmc/core/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/mmc.c
b/drivers/mmc/core/mmc.c
index e7762ad0dde39570b1382642daeae82ed1667c1a..403905501f5f8f00e98c36ba090ebd3f5f3d4169 100755
(executable)
--- a/
drivers/mmc/core/mmc.c
+++ b/
drivers/mmc/core/mmc.c
@@
-341,7
+341,10
@@
static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
* There are two boot regions of equal size, defined in
* multiples of 128K.
*/
- card->ext_csd.boot_size = ext_csd[EXT_CSD_BOOT_MULT] << 17;
+ if(HOST_IS_EMMC(card->host)) //emmc: We do NOT alloc boot partition now (kfx)
+ card->ext_csd.boot_size = 0;
+ else
+ card->ext_csd.boot_size = ext_csd[EXT_CSD_BOOT_MULT] << 17;
}
card->ext_csd.raw_hc_erase_gap_size =