Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262977
b: refs/heads/master
c: 65be3fe
h: refs/heads/master
i:
  262975: 8bb24b5
v: v3
  • Loading branch information
Andy Shevchenko authored and Chris Ball committed Aug 13, 2011
1 parent e457f77 commit df891a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 272308caaa6c0f2b1500a3660b9fa75f17a45cc4
refs/heads/master: 65be3fef930beb3e282e7f23dfba63289971430c
7 changes: 2 additions & 5 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2505,12 +2505,9 @@ int sdhci_add_host(struct sdhci_host *host)
host->timeout_clk *= 1000;

if (host->quirks & SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK)
host->timeout_clk = host->clock / 1000;
host->timeout_clk = mmc->f_max / 1000;

if (host->quirks & SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK)
mmc->max_discard_to = (1 << 27) / (mmc->f_max / 1000);
else
mmc->max_discard_to = (1 << 27) / host->timeout_clk;
mmc->max_discard_to = (1 << 27) / host->timeout_clk;

mmc->caps |= MMC_CAP_SDIO_IRQ | MMC_CAP_ERASE | MMC_CAP_CMD23;

Expand Down

0 comments on commit df891a7

Please sign in to comment.