Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208430
b: refs/heads/master
c: fc8a098
h: refs/heads/master
v: v3
  • Loading branch information
Hanumath Prasad authored and Linus Torvalds committed Aug 11, 2010
1 parent 0db66e3 commit 74cbf44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1f5977c6a136acbf525c634c8511e19d0c1f195
refs/heads/master: fc8a0985c2846292312556cba10b8a4182f55967
4 changes: 3 additions & 1 deletion trunk/drivers/mmc/core/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ static int mmc_read_ext_csd(struct mmc_card *card)
ext_csd[EXT_CSD_SEC_CNT + 1] << 8 |
ext_csd[EXT_CSD_SEC_CNT + 2] << 16 |
ext_csd[EXT_CSD_SEC_CNT + 3] << 24;
if (card->ext_csd.sectors)

/* Cards with density > 2GiB are sector addressed */
if (card->ext_csd.sectors > (2u * 1024 * 1024 * 1024) / 512)
mmc_card_set_blockaddr(card);
}

Expand Down

0 comments on commit 74cbf44

Please sign in to comment.