Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145519
b: refs/heads/master
c: 18489fa
h: refs/heads/master
i:
  145517: 41d1bc3
  145515: 3ff5197
  145511: 19e66b5
  145503: d2264fc
v: v3
  • Loading branch information
Martin Fuzzey authored and Pierre Ossman committed Jun 3, 2009
1 parent 6fe7200 commit b25ac92
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 85b843227a9b8c1a27ebd354a80c89aef067f2ca
refs/heads/master: 18489fa2ba4c170d96ffc1a41f7b9002dcb983b7
7 changes: 6 additions & 1 deletion trunk/drivers/mmc/host/mxcmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ struct mxcmci_host {
struct work_struct datawork;
};

static void mxcmci_set_clk_rate(struct mxcmci_host *host, unsigned int clk_ios);

static inline int mxcmci_use_dma(struct mxcmci_host *host)
{
return host->do_dma;
Expand Down Expand Up @@ -345,8 +347,11 @@ static int mxcmci_poll_status(struct mxcmci_host *host, u32 mask)
stat = readl(host->base + MMC_REG_STATUS);
if (stat & STATUS_ERR_MASK)
return stat;
if (time_after(jiffies, timeout))
if (time_after(jiffies, timeout)) {
mxcmci_softreset(host);
mxcmci_set_clk_rate(host, host->clock);
return STATUS_TIME_OUT_READ;
}
if (stat & mask)
return 0;
cpu_relax();
Expand Down

0 comments on commit b25ac92

Please sign in to comment.