linux/drivers/mmc/host
Anton Vorontsov a9e58f2573 sdhci: get rid of "frequency too high" flood when using eSDHC
Since commit 8dfd0374be ("MMC core: limit
minimum initialization frequency to 400kHz") MMC core checks for minimum
frequency, and that causes following messages flood when using eSDHC
controllers:

  ...
  mmc0: Minimum clock frequency too high for identification mode
  mmc0: Minimum clock frequency too high for identification mode
  ...

The warnings are legitimate, since if we'd use 133 MHz clocks for standard
SDHCI controllers, we'd not able to scale frequency down to 400 kHz.

But eSDHC controllers have a non-standard SD clock management, so we can
divide clock by 256 * 16, not just 256.

This patch introduces get_min_clock() callback for sdhci core and
implements it for sdhci-of driver, and thus fixes the issue.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Cc: Matt Fleming <matt@console-pimps.org>
Cc: Ian Molton <ian@mnementh.co.uk>
Cc: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Cc: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-07-29 19:10:36 -07:00
..
at91_mci.c mmc: at91_mci: reorder timer setup and mmc_add_host() call 2008-11-30 23:52:44 +01:00
atmel-mci-regs.h atmel-mci: add MCI2 register definitions 2009-06-13 22:43:01 +02:00
atmel-mci.c atmel-mci: Add support for inverted detect pin 2009-04-08 20:47:48 +02:00
au1xmmc.c au1xmmc: raise segment size limit. 2008-08-01 19:04:26 +02:00
cb710-mmc.c cb710: fix printk format string 2009-06-13 22:42:58 +02:00
cb710-mmc.h mmc: Driver for CB710/720 memory card reader (MMC part) 2009-06-13 22:42:58 +02:00
imxmmc.c imxmmc: move RSSR BLR 2009-04-08 20:11:59 +02:00
imxmmc.h imxmmc: use readl/writel 2008-12-16 14:58:17 +01:00
Kconfig mmc: Add new via-sdmmc host controller driver 2009-06-21 21:00:59 +02:00
Makefile mmc: Add new via-sdmmc host controller driver 2009-06-21 21:00:59 +02:00
mmc_spi.c spi: add spi_master flag word 2009-06-30 18:56:00 -07:00
mmci.c [ARM] 5544/1: Trust PrimeCell resource sizes 2009-06-11 15:36:56 +01:00
mmci.h mmci: Add support for ST Micro derivate 2009-02-02 20:57:06 +01:00
mvsdio.c mvsdio: fix handling of partial word at the end of PIO transfer 2009-07-20 16:46:34 -07:00
mvsdio.h mmc: SDIO driver for Marvell SoCs 2009-03-24 21:30:03 +01:00
mxcmmc.c mxcmmc: remove frequency workaround 2009-06-13 22:42:59 +02:00
of_mmc_spi.c mmc: struct device - replace bus_id with dev_name(), dev_set_name() 2009-03-24 16:38:21 -07:00
omap_hsmmc.c Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2009-06-14 13:42:43 -07:00
omap.c mmc/omap: make mmci-omap using platform_driver_probe 2009-06-13 22:42:57 +02:00
pxamci.c pxamci: correct DMA flow control 2009-07-03 14:13:28 +08:00
pxamci.h [ARM] pxa: mmc: add 1st host controller support for pxa3xx 2008-01-26 15:07:53 +00:00
ricoh_mmc.c ricoh_mmc: Use suspend_late/resume_early 2009-02-02 20:57:06 +01:00
s3cmci.c s3cmci: fix dma configuration call 2009-06-21 21:00:59 +02:00
s3cmci.h s3cmci: Support transfers which are not multiple of 32 bits. 2008-10-15 18:05:14 +02:00
sdhci-of.c sdhci: get rid of "frequency too high" flood when using eSDHC 2009-07-29 19:10:36 -07:00
sdhci-pci.c sdhci: Specific quirk vor VIA SDHCI controller in VX855ES 2009-06-21 21:00:59 +02:00
sdhci-pltfm.c sdhci: platform driver for SDHCI 2009-06-13 22:42:59 +02:00
sdhci-s3c.c sdhci: Add SDHCI_QUIRK_NO_MULTIBLOCK quirk 2009-06-21 21:00:58 +02:00
sdhci.c sdhci: get rid of "frequency too high" flood when using eSDHC 2009-07-29 19:10:36 -07:00
sdhci.h sdhci: get rid of "frequency too high" flood when using eSDHC 2009-07-29 19:10:36 -07:00
sdricoh_cs.c Merge branch 'master' of ../mmc 2008-12-31 19:56:05 +01:00
tifm_sd.c mmc: struct device - replace bus_id with dev_name(), dev_set_name() 2008-11-08 21:37:46 +01:00
tmio_mmc.c tmio_mmc: allow compilation for ASIC3 2009-06-13 22:43:01 +02:00
tmio_mmc.h tmio_mmc: add bus_shift support 2009-06-13 22:43:00 +02:00
via-sdmmc.c mmc: Add new via-sdmmc host controller driver 2009-06-21 21:00:59 +02:00
wbsd.c New mail address for Pierre Ossman 2009-04-08 20:14:54 +02:00
wbsd.h mmc: update header file paths 2007-07-26 01:53:31 +02:00