From: kfx Date: Sat, 26 Mar 2011 07:38:08 +0000 (+0800) Subject: sdmmc driver: sdio do not run 'mmc_suspend_host' X-Git-Tag: firefly_0821_release~10622 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=229bfa1ec3e4ebbef667310d26e884c47cc02c92;p=firefly-linux-kernel-4.4.55.git sdmmc driver: sdio do not run 'mmc_suspend_host' --- diff --git a/drivers/mmc/host/rk29_sdmmc.c b/drivers/mmc/host/rk29_sdmmc.c index ec56c954719a..c50590385422 100755 --- a/drivers/mmc/host/rk29_sdmmc.c +++ b/drivers/mmc/host/rk29_sdmmc.c @@ -1549,7 +1549,7 @@ static int rk29_sdmmc_suspend(struct platform_device *pdev, pm_message_t state) struct rk29_sdmmc *host = platform_get_drvdata(pdev); printk("Enter rk29_sdmmc_suspend\n"); - if(host->mmc) + if(host->mmc && (strncmp(host->dma_name, "sdio", strlen("sdio")) != 0)) ret = mmc_suspend_host(host->mmc, state); rk29_sdmmc_write(host->regs, SDMMC_CLKENA, 0); clk_disable(host->clk); @@ -1566,7 +1566,7 @@ static int rk29_sdmmc_resume(struct platform_device *pdev) printk("Exit rk29_sdmmc_suspend\n"); clk_enable(host->clk); rk29_sdmmc_write(host->regs, SDMMC_CLKENA, 1); - if(host->mmc) + if(host->mmc && (strncmp(host->dma_name, "sdio", strlen("sdio")) != 0)) ret = mmc_resume_host(host->mmc); #endif return ret;