|
@@ -526,8 +526,7 @@ static int mmc_decode_ext_csd(struct mmc_card *card, u8 *ext_csd)
|
|
|
card->cid.year += 16;
|
|
card->cid.year += 16;
|
|
|
|
|
|
|
|
/* check whether the eMMC card supports BKOPS */
|
|
/* check whether the eMMC card supports BKOPS */
|
|
|
- if (!mmc_card_broken_hpi(card) &&
|
|
|
|
|
- ext_csd[EXT_CSD_BKOPS_SUPPORT] & 0x1) {
|
|
|
|
|
|
|
+ if (ext_csd[EXT_CSD_BKOPS_SUPPORT] & 0x1) {
|
|
|
card->ext_csd.bkops = 1;
|
|
card->ext_csd.bkops = 1;
|
|
|
card->ext_csd.man_bkops_en =
|
|
card->ext_csd.man_bkops_en =
|
|
|
(ext_csd[EXT_CSD_BKOPS_EN] &
|
|
(ext_csd[EXT_CSD_BKOPS_EN] &
|
|
@@ -1793,8 +1792,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
|
|
|
* If cache size is higher than 0, this indicates
|
|
* If cache size is higher than 0, this indicates
|
|
|
* the existence of cache and it can be turned on.
|
|
* the existence of cache and it can be turned on.
|
|
|
*/
|
|
*/
|
|
|
- if (!mmc_card_broken_hpi(card) &&
|
|
|
|
|
- card->ext_csd.cache_size > 0) {
|
|
|
|
|
|
|
+ if (card->ext_csd.cache_size > 0) {
|
|
|
err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
|
|
err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
|
|
|
EXT_CSD_CACHE_CTRL, 1,
|
|
EXT_CSD_CACHE_CTRL, 1,
|
|
|
card->ext_csd.generic_cmd6_time);
|
|
card->ext_csd.generic_cmd6_time);
|