mmc: core: Invoke mmc_power_up/off with claim_host acquired
mmc_power_up/off() would be processed by the platform driver,
so we should ensure that platform driver is in resume state before
invoking these calls. Acquire mmc_claim_host before invoking
mmc_power_up/off() which explicitly resumes platform device.
In prior version kernels, platform device was getting resumed in
mmc_set_ios which gets called by mmc_power_up/down().
But on 4.9 onwards, it was consolidated and added in mmc_claim_host().
So this requirement has arisen only here.
Change-Id: I548bd55e41465a84472081542446b036ebd877a0
Signed-off-by:
Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Loading
Please register or sign in to comment