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

mmc: sunxi-mmc: Ensure host is suspended during system sleep

If the device suspend process begins before the mmc host's autosuspend
timeout, the host will continue running during system sleep. Avoid
this by forcing runtime suspend during a global suspend transition.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20210113052421.36553-1-samuel@sholland.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Samuel Holland and committed by
Ulf Hansson
3882917d 7214d792

+2
+2
drivers/mmc/host/sunxi-mmc.c
··· 1529 1529 #endif 1530 1530 1531 1531 static const struct dev_pm_ops sunxi_mmc_pm_ops = { 1532 + SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, 1533 + pm_runtime_force_resume) 1532 1534 SET_RUNTIME_PM_OPS(sunxi_mmc_runtime_suspend, 1533 1535 sunxi_mmc_runtime_resume, 1534 1536 NULL)