Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164698
b: refs/heads/master
c: 500f356
h: refs/heads/master
v: v3
  • Loading branch information
Balaji Rao authored and Linus Torvalds committed Sep 23, 2009
1 parent 4124dea commit dcc2150
Show file tree
Hide file tree
Showing 2 changed files with 8 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: e56770fbc48c1517f620f9f68e3f728e74d52bf5
refs/heads/master: 500f35648e5ebd04be00f974738a9db959a892b8
8 changes: 7 additions & 1 deletion trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,13 @@ void mmc_set_timing(struct mmc_host *host, unsigned int timing)
*/
static void mmc_power_up(struct mmc_host *host)
{
int bit = fls(host->ocr_avail) - 1;
int bit;

/* If ocr is set, we use it */
if (host->ocr)
bit = ffs(host->ocr) - 1;
else
bit = fls(host->ocr_avail) - 1;

host->ios.vdd = bit;
if (mmc_host_is_spi(host)) {
Expand Down

0 comments on commit dcc2150

Please sign in to comment.