]> git.baikalelectronics.ru Git - kernel.git/commit
sdhci-s3c: add support for the non standard minimal clock value
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 11 Aug 2010 01:01:56 +0000 (18:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:05 +0000 (08:59 -0700)
commit2e3af97062806897f2d3abe9b586da1e1bc79f1a
tree9567c61e6df52664b86c0d0da9f0cdb5a52de4b6
parent38c07cdf60647a2c12fba5a53a6c8586174384df
sdhci-s3c: add support for the non standard minimal clock value

S3C SDHCI host controller can change the source for generating mmc clock.
By default host bus clock is used, what causes some problems on machines
with 133MHz bus, because the SDHCI divider cannot be as high get proper
clock value for identification mode.  This is not a problem for the
controller, because it can generate lower frequencies from other clock
sources.  This patch changes sdhci driver to use get_min_clock() call if
it has been provided.

This fixes the flood of the following warnings on Samsung S5PV210 SoCs:
mmc0: Minimum clock frequency too high for identification mode

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mmc/host/sdhci-s3c.c
drivers/mmc/host/sdhci.c