at init, the default state of mmc_clkgate fw is clock not gate
So at boot, set_ios is not ensured to be called with ios->clock!=0
This may result to fabric errors at boot.
Correct this by setting the default host->iosclock to !=0
and taking a runtime_pm ref counter at init.
Change-Id: I32e8f31861b268d17047ca15eea45044b635a4bc
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
}
sdhci_init(host, 0);
+ host->iosclock = 1; /* default clk_gate is 0 */
+ pm_runtime_get_noresume(host->mmc->parent);
#ifdef CONFIG_MMC_DEBUG
sdhci_dumpregs(host);