mmc: sdhci-s3c: Do not allow frequencies higher than requested
authorTomasz Figa <tomasz.figa@gmail.com>
Sat, 11 Jan 2014 21:39:06 +0000 (22:39 +0100)
committerChris Ball <chris@printf.net>
Mon, 3 Mar 2014 15:23:39 +0000 (10:23 -0500)
commit2200300060ada5e32136d597502e446ac2ef2a27
tree31bef47f87192c6a2df62bc4d36ce03771d57687
parent3ac147facfbd234acf3a990968de9746a399f133
mmc: sdhci-s3c: Do not allow frequencies higher than requested

This patch modifies sdhci_s3c_consider_clock() to fail if bus clock
being considered can not provide frequency lower or equal requested,
instead of returning the lowest supported.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by; Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/sdhci-s3c.c