Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312809
b: refs/heads/master
c: 6de707f
h: refs/heads/master
i:
  312807: e7b7967
v: v3
  • Loading branch information
Laurent Pinchart authored and Chris Ball committed Jul 21, 2012
1 parent 2c3fd5a commit d323abf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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: 7541ca98477862e2e9988c6c2ceadbdccefa9d77
refs/heads/master: 6de707f200f73af7a58b58b3a5b956cff7b6e228
18 changes: 10 additions & 8 deletions trunk/drivers/mmc/host/tmio_mmc_pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,19 +811,21 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
if (host->set_pwr && ios->power_mode == MMC_POWER_OFF)
host->set_pwr(host->pdev, 0);
if (host->power) {
tmio_mmc_clk_stop(host);
host->power = false;
pm_runtime_put(dev);
}
tmio_mmc_clk_stop(host);
}

switch (ios->bus_width) {
case MMC_BUS_WIDTH_1:
sd_ctrl_write16(host, CTL_SD_MEM_CARD_OPT, 0x80e0);
break;
case MMC_BUS_WIDTH_4:
sd_ctrl_write16(host, CTL_SD_MEM_CARD_OPT, 0x00e0);
break;
if (host->power) {
switch (ios->bus_width) {
case MMC_BUS_WIDTH_1:
sd_ctrl_write16(host, CTL_SD_MEM_CARD_OPT, 0x80e0);
break;
case MMC_BUS_WIDTH_4:
sd_ctrl_write16(host, CTL_SD_MEM_CARD_OPT, 0x00e0);
break;
}
}

/* Let things settle. delay taken from winCE driver */
Expand Down

0 comments on commit d323abf

Please sign in to comment.