Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339524
b: refs/heads/master
c: 70ac093
h: refs/heads/master
v: v3
  • Loading branch information
Ulf Hansson authored and Russell King committed Oct 18, 2012
1 parent bb94343 commit 216787f
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 06c1a121805d7870abbf037d3ccd9a609a5219f2
refs/heads/master: 70ac09358cc52f3ddbf73555dc150d486a7133bb
12 changes: 7 additions & 5 deletions trunk/drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,12 +664,14 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data)
datactrl |= MCI_ST_DPSM_SDIOEN;

/*
* The ST Micro variant for SDIO transfer sizes
* less then 8 bytes should have clock H/W flow
* control disabled.
* The ST Micro variant for SDIO small write transfers
* needs to have clock H/W flow control disabled,
* otherwise the transfer will not start. The threshold
* depends on the rate of MCLK.
*/
if ((host->size < 8) &&
(data->flags & MMC_DATA_WRITE))
if (data->flags & MMC_DATA_WRITE &&
(host->size < 8 ||
(host->size <= 8 && host->mclk > 50000000)))
clk = host->clk_reg & ~variant->clkreg_enable;
else
clk = host->clk_reg | variant->clkreg_enable;
Expand Down

0 comments on commit 216787f

Please sign in to comment.