]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: Limit MMC speed to 52MHz if not HS200
authorAl Cooper <alcooperx@gmail.com>
Fri, 30 Nov 2012 15:53:35 +0000 (10:53 -0500)
committerChris Ball <cjb@laptop.org>
Tue, 4 Dec 2012 18:43:14 +0000 (13:43 -0500)
commitee896a6b8e56f9a83b7855c5cf374bb49565c35f
tree5676a9053ad126825648d3f2bc77705c11f28e71
parent6fada2d9b9dd567aa9284de0903019579dbb24b1
mmc: Limit MMC speed to 52MHz if not HS200

If "caps2" host capabilities does not indicate support for MMC
HS200, don't allow clock speeds >52MHz. Currently, for MMC, the
clock speed is set to the lesser of the max speed the eMMC module
supports (card->ext_csd.hs_max_dtr) or the max base clock of the
host controller (host->f_max based on BASE_CLK_FREQ in the host
CAPS register). This means that a host controller that doesn't
support HS200 mode but has a base clock of 100MHz and an eMMC module
that supports HS200 speeds will end up using a 100MHz clock.

Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c