From 0304ebc2aede1d119f416268dc2d91f98ea5ad7f Mon Sep 17 00:00:00 2001 From: kfx Date: Sat, 21 May 2011 15:51:07 +0800 Subject: [PATCH] update sdmmc drivers: set clk_rate error --- drivers/mmc/host/rk29_sdmmc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/rk29_sdmmc.c b/drivers/mmc/host/rk29_sdmmc.c index c674f13242e0..a77c056ff402 100755 --- a/drivers/mmc/host/rk29_sdmmc.c +++ b/drivers/mmc/host/rk29_sdmmc.c @@ -828,7 +828,7 @@ static void rk29_sdmmc_request(struct mmc_host *mmc, struct mmc_request *mrq) if(rk29_sdmmc_set_clock(host)) { mrq->cmd->error = -EINPROGRESS; - dev_info(host->dev, "rk29_sdmmc_set_clock timeout\n"); + dev_info(host->dev, "rk29_sdmmc_set_clock timeout, ios_clock = %d, clock = %d\n", host->ios_clock, host->clock); rk29_sdmmc_request_done(host, mrq); rk29_sdmmc_reset_ctrl(host); rk29_sdmmc_show_info(host); @@ -1338,9 +1338,9 @@ static int rk29_sdmmc_probe(struct platform_device *pdev) /* clk init */ host->clk = clk_get(&pdev->dev, "mmc"); if(host->is_sdio) - clk_set_rate(host->clk,RK29_SDIO_CLK); + clk_set_rate(host->clk,RK29_SDIO_CLK * 1000000); else - clk_set_rate(host->clk,RK29_SDCARD_CLK); + clk_set_rate(host->clk,RK29_SDCARD_CLK * 1000000); clk_enable(host->clk); clk_enable(clk_get(&pdev->dev, "hclk_mmc")); host->bus_hz = clk_get_rate(host->clk); -- 2.34.1