Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210439
b: refs/heads/master
c: f3c65b2
h: refs/heads/master
i:
  210437: a8bcb71
  210435: e6cbe05
  210431: 45cf26c
v: v3
  • Loading branch information
David Vrabel authored and Linus Torvalds committed Sep 10, 2010
1 parent a6c2f24 commit 80816f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 152831be91dfe864e06c3b3ff2bf994e04df4cdf
refs/heads/master: f3c65b2870f2481f3646bc410a58a12989ecc704
5 changes: 2 additions & 3 deletions trunk/drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,8 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
goto err;
}

err = mmc_sd_get_cid(host, host->ocr & ocr, card->raw_cid);

if (!err) {
if (ocr & R4_MEMORY_PRESENT
&& mmc_sd_get_cid(host, host->ocr & ocr, card->raw_cid) == 0) {
card->type = MMC_TYPE_SD_COMBO;

if (oldcard && (oldcard->type != MMC_TYPE_SD_COMBO ||
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/mmc/sdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
* [8:0] Byte/block count
*/

#define R4_MEMORY_PRESENT (1 << 27)

/*
SDIO status in R5
Type
Expand Down

0 comments on commit 80816f3

Please sign in to comment.