|
@@ -376,7 +376,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
|
|
|
}
|
|
|
|
|
|
card->ext_csd.raw_hc_erase_gap_size =
|
|
|
- ext_csd[EXT_CSD_PARTITION_ATTRIBUTE];
|
|
|
+ ext_csd[EXT_CSD_HC_WP_GRP_SIZE];
|
|
|
card->ext_csd.raw_sec_trim_mult =
|
|
|
ext_csd[EXT_CSD_SEC_TRIM_MULT];
|
|
|
card->ext_csd.raw_sec_erase_mult =
|
|
@@ -551,7 +551,7 @@ static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width)
|
|
|
goto out;
|
|
|
|
|
|
/* only compare read only fields */
|
|
|
- err = (!(card->ext_csd.raw_partition_support ==
|
|
|
+ err = !((card->ext_csd.raw_partition_support ==
|
|
|
bw_ext_csd[EXT_CSD_PARTITION_SUPPORT]) &&
|
|
|
(card->ext_csd.raw_erased_mem_count ==
|
|
|
bw_ext_csd[EXT_CSD_ERASED_MEM_CONT]) &&
|