From: Dong Aisheng Date: Wed, 22 Jul 2015 12:53:07 +0000 (+0800) Subject: mmc: sdhci: make max-frequency property in device tree work X-Git-Tag: omap-for-v4.3/fixes-merge-window~194^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5924175755a0ed902d91f2f2660e914032fa63e5;p=pandora-kernel.git mmc: sdhci: make max-frequency property in device tree work Device tree provides option to specify the max freqency with property "max-frequency" in dts and common parse function mmc_of_parse() will parse it and use this value to set host->f_max to tell the MMC core the maxinum frequency the host works. However, current sdhci driver will finally overwrite this value with host->max_clk regardless of the max-frequency property. This patch makes sure not overwrite the max-frequency set from device tree and do basic sanity check. Signed-off-by: Dong Aisheng Reviewed-by: Johan Derycke Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed