projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930f152
)
mmc: sh_mmcif: Simplify calculation of mmc->f_min
author
Simon Horman
<
[email protected]
>
Wed, 28 Mar 2012 09:01:11 +0000
(18:01 +0900)
committer
Chris Ball
<
[email protected]
>
Fri, 6 Apr 2012 00:32:24 +0000
(20:32 -0400)
There is no need to tune mmc->f_min to a value near 400kHz as the MMC core
begins testing frequencies at 400kHz regardless of the value of mmc->f_min.
As suggested by Guennadi Liakhovetski.
Cc: Magnus Damm <
[email protected]
>
Acked-by: Guennadi Liakhovetski <
[email protected]
>
Tested-by: Cao Minh Hiep <
[email protected]
>
Signed-off-by: Simon Horman <
[email protected]
>
Signed-off-by: Chris Ball <
[email protected]
>
drivers/mmc/host/sh_mmcif.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/sh_mmcif.c
b/drivers/mmc/host/sh_mmcif.c
index 4bb999ed335d34abd5eaaf998d75f244d3ae7db1..724b35e85a265f70faa11fe8f603931a687f04af 100644
(file)
--- a/
drivers/mmc/host/sh_mmcif.c
+++ b/
drivers/mmc/host/sh_mmcif.c
@@
-1299,13
+1299,7
@@
static int __devinit sh_mmcif_probe(struct platform_device *pdev)
mmc->ops = &sh_mmcif_ops;
mmc->f_max = host->clk / 2;
- /* close to 400KHz */
- if (host->clk < 51200000)
- mmc->f_min = host->clk / 128;
- else if (host->clk < 102400000)
- mmc->f_min = host->clk / 256;
- else
- mmc->f_min = host->clk / 512;
+ mmc->f_min = host->clk / 512;
if (pd->ocr)
mmc->ocr_avail = pd->ocr;
mmc->caps = MMC_CAP_MMC_HIGHSPEED;