Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255201
b: refs/heads/master
c: 58d1246
h: refs/heads/master
i:
  255199: 120f3ed
v: v3
  • Loading branch information
Adrian Hunter authored and Chris Ball committed Jul 20, 2011
1 parent f29d084 commit a485518
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e056a1b5b67b4e4bfad00bf143ab14f634777705
refs/heads/master: 58d1246db340793c408b22884598e4ce4d1d4aba
5 changes: 5 additions & 0 deletions trunk/drivers/mmc/host/sdhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2509,6 +2509,11 @@ int sdhci_add_host(struct sdhci_host *host)
} else
mmc->f_min = host->max_clk / SDHCI_MAX_DIV_SPEC_200;

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->caps |= MMC_CAP_SDIO_IRQ | MMC_CAP_ERASE | MMC_CAP_CMD23;

if (host->quirks & SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12)
Expand Down

0 comments on commit a485518

Please sign in to comment.