Skip to content

Commit c4dedaa

Browse files
benchuangglistorulf
authored andcommitted
mmc: sdhci-pci-gli: GL9767: Fix low power mode in the SD Express process
When starting the SD Express process, the low power negotiation mode will be disabled, so we need to re-enable it after switching back to SD mode. Fixes: 0e92aec ("mmc: sdhci-pci-gli: Add support SD Express card for GL9767") Signed-off-by: Ben Chuang <[email protected]> Cc: [email protected] Message-ID: <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent 8c68b56 commit c4dedaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,9 @@ static int gl9767_init_sd_express(struct mmc_host *mmc, struct mmc_ios *ios)
10681068
sdhci_writew(host, value, SDHCI_CLOCK_CONTROL);
10691069
}
10701070

1071+
pci_read_config_dword(pdev, PCIE_GLI_9767_CFG, &value);
1072+
value &= ~PCIE_GLI_9767_CFG_LOW_PWR_OFF;
1073+
pci_write_config_dword(pdev, PCIE_GLI_9767_CFG, value);
10711074
gl9767_vhs_read(pdev);
10721075

10731076
return 0;

0 commit comments

Comments
 (0)