mmc: sunxi-mmc: Ensure host is suspended during system sleep
authorSamuel Holland <samuel@sholland.org>
Wed, 13 Jan 2021 05:24:21 +0000 (23:24 -0600)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 1 Feb 2021 10:54:45 +0000 (11:54 +0100)
commit3882917da8c3a0ce67b052d94e7f591bcb5275a0
tree11926711a4cb540ae754f4ef6578c916a09937a2
parent7214d79237df4d4e3b40e5c1763698e21393da16
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>
drivers/mmc/host/sunxi-mmc.c