From: Al Cooper Date: Fri, 30 Nov 2012 15:53:35 +0000 (-0500) Subject: mmc: Limit MMC speed to 52MHz if not HS200 X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~96^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccb52a00fd3fdea428e29816cbacb0a78090d474;p=pandora-kernel.git 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 Signed-off-by: Chris Ball --- Reading git-diff-tree failed