Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322504
b: refs/heads/master
c: 74f330b
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo authored and Chris Ball committed Sep 4, 2012
1 parent a497618 commit 1bced61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: fc108d24d3a6da63576a460e122fa1df0cbdea20
refs/heads/master: 74f330bceaa7b88d06062e1cac3d519a3dfc041e
6 changes: 3 additions & 3 deletions trunk/drivers/mmc/host/sdhci-esdhc.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ static inline void esdhc_set_clock(struct sdhci_host *host, unsigned int clock)
int div = 1;
u32 temp;

if (clock == 0)
goto out;

temp = sdhci_readl(host, ESDHC_SYSTEM_CONTROL);
temp &= ~(ESDHC_CLOCK_IPGEN | ESDHC_CLOCK_HCKEN | ESDHC_CLOCK_PEREN
| ESDHC_CLOCK_MASK);
sdhci_writel(host, temp, ESDHC_SYSTEM_CONTROL);

if (clock == 0)
goto out;

while (host->max_clk / pre_div / 16 > clock && pre_div < 256)
pre_div *= 2;

Expand Down

0 comments on commit 1bced61

Please sign in to comment.