Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>

authored by

Guennadi Liakhovetski and committed by
Chris Ball
f6bc41fb c99872a1

+1 -1
+1 -1
drivers/mmc/host/sh_mmcif.c
··· 908 908 if (host->power) { 909 909 pm_runtime_put(&host->pd->dev); 910 910 host->power = false; 911 - if (p->down_pwr) 911 + if (p->down_pwr && ios->power_mode == MMC_POWER_OFF) 912 912 p->down_pwr(host->pd); 913 913 } 914 914 host->state = STATE_IDLE;