]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-pci-gli: Fix GL9763E runtime PM when the system resumes from suspend
authorBen Chuang <benchuanggli@gmail.com>
Fri, 20 May 2022 11:42:42 +0000 (19:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 31 May 2022 13:31:39 +0000 (15:31 +0200)
commitb0997f07ec4cfffb22a0a26764282f61192b9861
treedba6262d628a14d6d149a8bf65401ca61c5c8c0c
parentb87989e8a7dab202ee24407c1ccd8a5424655d84
mmc: sdhci-pci-gli: Fix GL9763E runtime PM when the system resumes from suspend

When the system resumes from suspend (S3 or S4), the power mode is
MMC_POWER_OFF. In this status, gl9763e_runtime_resume() should not enable
PLL. Add a condition to this function to enable PLL only when the power
mode is MMC_POWER_ON.

Fixes: 434bf17c471d (mmc: sdhci-pci-gli: Add runtime PM for GL9763E)
Signed-off-by: Ben Chuang <benchuanggli@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220520114242.150235-1-benchuanggli@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pci-gli.c