mmc: sdhci-s3c: Cache bus clock rates
authorTomasz Figa <tomasz.figa@gmail.com>
Sat, 11 Jan 2014 21:39:02 +0000 (22:39 +0100)
committerChris Ball <chris@printf.net>
Mon, 3 Mar 2014 15:23:18 +0000 (10:23 -0500)
commit6eb28bdcb27249ca9981fb063d3f2485fd344500
tree689d84356e6e9e9b3f8d44c5ff745d3bb8891b48
parent8880a4a526340335403696f30daf4e05a413f3bd
mmc: sdhci-s3c: Cache bus clock rates

To fix scheduling while atomic happening in sdhci_s3c_set_clock() caused
by calling clk_get_rate() that might sleep, this patch modifies the
driver to cache rates of all bus clocks at probe time and then only use
those cache values.

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