mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>