From: Guennadi Liakhovetski Date: Wed, 16 Nov 2011 09:10:41 +0000 (+0100) Subject: mmc: sh_mmcif: fix clock gating on platforms with a .down_pwr() method X-Git-Tag: v3.2~56^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6bc41fb08cbd6943df358437e0af90c91a3caa3;p=platform%2Fkernel%2Flinux-amlogic.git mmc: sh_mmcif: fix clock gating on platforms with a .down_pwr() method Do not power down the card in .set_ios(), unless MMC_POWER_OFF is requested. This fixes the MMCIF interface functionality on ecovec boards. Signed-off-by: Guennadi Liakhovetski Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index 369366c..d5505f3 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -908,7 +908,7 @@ static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) if (host->power) { pm_runtime_put(&host->pd->dev); host->power = false; - if (p->down_pwr) + if (p->down_pwr && ios->power_mode == MMC_POWER_OFF) p->down_pwr(host->pd); } host->state = STATE_IDLE;