Skip to content

Commit 291e7d5

Browse files
benchuanggliUlf Hansson
authored andcommitted
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: d607667 (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>
1 parent b00ed48 commit 291e7d5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/mmc/host/sdhci-pci-gli.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -982,6 +982,9 @@ static int gl9763e_runtime_resume(struct sdhci_pci_chip *chip)
982982
struct sdhci_host *host = slot->host;
983983
u16 clock;
984984

985+
if (host->mmc->ios.power_mode != MMC_POWER_ON)
986+
return 0;
987+
985988
clock = sdhci_readw(host, SDHCI_CLOCK_CONTROL);
986989

987990
clock |= SDHCI_CLOCK_PLL_EN;

0 commit comments

Comments
 (0)