Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287623
b: refs/heads/master
c: 2d0d68f
h: refs/heads/master
i:
  287621: 4224317
  287619: 8b42464
  287615: 98f07af
v: v3
  • Loading branch information
Philip Rakity authored and Chris Ball committed Feb 14, 2012
1 parent bf84e10 commit 788f1d2
Show file tree
Hide file tree
Showing 2 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: ba8c4dc99808b1de809a0eda71a32f26efdafd92
refs/heads/master: 2d0d68f583279dbdcc1a2ef3f81ea8d285a0adbe
7 changes: 4 additions & 3 deletions trunk/drivers/mmc/core/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ static int sdio_init_func(struct mmc_card *card, unsigned int fn)
return ret;
}

static int sdio_read_cccr(struct mmc_card *card)
static int sdio_read_cccr(struct mmc_card *card, u32 ocr)
{
int ret;
int cccr_vsn;
int uhs = ocr & R4_18V_PRESENT;
unsigned char data;
unsigned char speed;

Expand Down Expand Up @@ -149,7 +150,7 @@ static int sdio_read_cccr(struct mmc_card *card)
card->scr.sda_spec3 = 0;
card->sw_caps.sd3_bus_mode = 0;
card->sw_caps.sd3_drv_type = 0;
if (cccr_vsn >= SDIO_CCCR_REV_3_00) {
if (cccr_vsn >= SDIO_CCCR_REV_3_00 && uhs) {
card->scr.sda_spec3 = 1;
ret = mmc_io_rw_direct(card, 0, 0,
SDIO_CCCR_UHS, 0, &data);
Expand Down Expand Up @@ -712,7 +713,7 @@ static int mmc_sdio_init_card(struct mmc_host *host, u32 ocr,
/*
* Read the common registers.
*/
err = sdio_read_cccr(card);
err = sdio_read_cccr(card, ocr);
if (err)
goto remove;

Expand Down

0 comments on commit 788f1d2

Please sign in to comment.