Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228925
b: refs/heads/master
c: e9b8684
h: refs/heads/master
i:
  228923: 06a9e9b
v: v3
  • Loading branch information
Linus Walleij authored and Chris Ball committed Jan 9, 2011
1 parent aa85c63 commit da393ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 2bd6a935555b06622fa7f47a9c411b8a7812e4dc
refs/heads/master: e9b86841b372de01ae865080118e29159d8b7c39
5 changes: 3 additions & 2 deletions trunk/drivers/mmc/core/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,9 @@ void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card)
unsigned int timeout_us, limit_us;

timeout_us = data->timeout_ns / 1000;
timeout_us += data->timeout_clks * 1000 /
(mmc_host_clk_rate(card->host) / 1000);
if (mmc_host_clk_rate(card->host))
timeout_us += data->timeout_clks * 1000 /
(mmc_host_clk_rate(card->host) / 1000);

if (data->flags & MMC_DATA_WRITE)
/*
Expand Down

0 comments on commit da393ba

Please sign in to comment.